LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-21-2007, 11:02 PM   #1
RDS
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Post C based project attempting to change over to C++ (Many Errors (Normal)) Need Help!


Hi Guys,

I'm undertaking a new project and changing it's coding from C to C++ and as normal gotten many errors doing so and was hoping some of you mates could lend a hand.

Making all in src
make[1]: Entering directory `/home/rds911/topm/topm/src'
make all-recursive
make[2]: Entering directory `/home/rds911/topm/topm/src'
Making all in libopm
make[3]: Entering directory `/home/rds911/topm/topm/src/libopm'
Making all in src
make[4]: Entering directory `/home/rds911/topm/topm/src/libopm/src'
make all-am
make[5]: Entering directory `/home/rds911/topm/topm/src/libopm/src'
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT compat.lo -MD -MP -MF ".deps/compat.Tpo" -c -o compat.lo compat.c; \
then mv -f ".deps/compat.Tpo" ".deps/compat.Plo"; else rm -f ".deps/compat.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT compat.lo -MD -MP -MF .deps/compat.Tpo -c compat.c -fPIC -DPIC -o .libs/compat.o
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT compat.lo -MD -MP -MF .deps/compat.Tpo -c compat.c -o compat.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT config.lo -MD -MP -MF ".deps/config.Tpo" -c -o config.lo config.c; \
then mv -f ".deps/config.Tpo" ".deps/config.Plo"; else rm -f ".deps/config.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT config.lo -MD -MP -MF .deps/config.Tpo -c config.c -fPIC -DPIC -o .libs/config.o
config.c: In function 'OPM_CONFIG_T* libopm_config_create()':
config.c:68: error: invalid conversion from 'void*' to 'OPM_CONFIG_T*'
config.c:69: error: invalid conversion from 'void*' to 'void**'
make[5]: *** [config.lo] Error 1
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT inet.lo -MD -MP -MF ".deps/inet.Tpo" -c -o inet.lo inet.c; \
then mv -f ".deps/inet.Tpo" ".deps/inet.Plo"; else rm -f ".deps/inet.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT inet.lo -MD -MP -MF .deps/inet.Tpo -c inet.c -fPIC -DPIC -o .libs/inet.o
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT inet.lo -MD -MP -MF .deps/inet.Tpo -c inet.c -o inet.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT libopm.lo -MD -MP -MF ".deps/libopm.Tpo" -c -o libopm.lo libopm.c; \
then mv -f ".deps/libopm.Tpo" ".deps/libopm.Plo"; else rm -f ".deps/libopm.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT libopm.lo -MD -MP -MF .deps/libopm.Tpo -c libopm.c -fPIC -DPIC -o .libs/libopm.o
libopm.c: In function 'OPM_T* opm_create()':
libopm.c:125: error: invalid conversion from 'void*' to 'OPM_T*'
libopm.c:134: error: invalid conversion from 'void*' to 'OPM_CALLBACK_T*'
libopm.c: In function 'OPM_REMOTE_T* opm_remote_create(const char*)':
libopm.c:165: error: invalid conversion from 'void*' to 'OPM_REMOTE_T*'
libopm.c: In function 'OPM_PROTOCOL_CONFIG_T* libopm_protocol_config_create()':
libopm.c:474: error: invalid conversion from 'void*' to 'OPM_PROTOCOL_CONFIG_T*'
libopm.c: In function 'OPM_SCAN_T* libopm_scan_create(OPM_T*, OPM_REMOTE_T*)':
libopm.c:685: error: invalid conversion from 'void*' to 'OPM_SCAN_T*'
libopm.c: In function 'OPM_CONNECTION_T* libopm_connection_create()':
libopm.c:772: error: invalid conversion from 'void*' to 'OPM_CONNECTION_T*'
libopm.c: In function 'void libopm_check_poll(OPM_T*)':
libopm.c:1098: error: invalid conversion from 'void*' to 'pollfd*'
make[5]: *** [libopm.lo] Error 1
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT list.lo -MD -MP -MF ".deps/list.Tpo" -c -o list.lo list.c; \
then mv -f ".deps/list.Tpo" ".deps/list.Plo"; else rm -f ".deps/list.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c -fPIC -DPIC -o .libs/list.o
list.c: In function 'OPM_NODE_T* libopm_node_create(void*)':
list.c:32: error: invalid conversion from 'void*' to 'OPM_NODE_T*'
list.c: In function 'OPM_LIST_T* libopm_list_create()':
list.c:42: error: invalid conversion from 'void*' to 'OPM_LIST_T*'
make[5]: ***[list.lo] Error 1
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT malloc.lo -MD -MP -MF ".deps/malloc.Tpo" -c -o malloc.lo malloc.c; \
then mv -f ".deps/malloc.Tpo" ".deps/malloc.Plo"; else rm -f ".deps/malloc.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c -fPIC -DPIC -o .libs/malloc.o
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c -o malloc.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT proxy.lo -MD -MP -MF ".deps/proxy.Tpo" -c -o proxy.lo proxy.c; \
then mv -f ".deps/proxy.Tpo" ".deps/proxy.Plo"; else rm -f ".deps/proxy.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT proxy.lo -MD -MP -MF .deps/proxy.Tpo -c proxy.c -fPIC -DPIC -o .libs/proxy.o
proxy.c: In function 'int libopm_proxy_http_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:49: error: 'libopm_snprintf' was not declared in this scope
proxy.c: In function 'int libopm_proxy_socks4_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:89: error: 'libopm_snprintf' was not declared in this scope
proxy.c: In function 'int libopm_proxy_socks5_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:155: error: 'libopm_snprintf' was not declared in this scope
proxy.c: In function 'int libopm_proxy_wingate_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:188: error: 'libopm_snprintf' was not declared in this scope
proxy.c: In function 'int libopm_proxy_router_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:212: error: 'libopm_snprintf' was not declared in this scope
proxy.c: In function 'int libopm_proxy_httppost_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:240: error: 'libopm_snprintf' was not declared in this scope
proxy.c: In function 'int libopm_proxy_httpget_write(OPM_T*, OPM_SCAN_T*, OPM_CONNECTION_T*)':
proxy.c:260: error: 'libopm_snprintf' was not declared in this scope
make[5]: *** [proxy.lo] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT test.o -MD -MP -MF ".deps/test.Tpo" -c -o test.o test.c; \
then mv -f ".deps/test.Tpo" ".deps/test.Po"; else rm -f ".deps/test.Tpo"; exit 1; fi
test.c: In function 'int main(int, char**)':
test.c:97: error: invalid conversion from 'const void*' to 'void*'
test.c:97: error: initializing argument 3 of 'OPM_ERR_T opm_config(OPM_T*, int, void*)'
test.c:99: error: invalid conversion from 'const void*' to 'void*'
test.c:99: error: initializing argument 3 of 'OPM_ERR_T opm_config(OPM_T*, int, void*)'
test.c:100: error: invalid conversion from 'const void*' to 'void*'
test.c:100: error: initializing argument 3 of 'OPM_ERR_T opm_config(OPM_T*, int, void*)'
make[5]: *** [test.o] Error 1
make[5]: Target `all-am' not remade because of errors.
make[5]: Leaving directory `/home/rds911/topm/topm/src/libopm/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/rds911/topm/topm/src/libopm/src'
Making all in doc
make[4]: Entering directory `/home/rds911/topm/topm/src/libopm/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/rds911/topm/topm/src/libopm/doc'
make[4]: Entering directory `/home/rds911/topm/topm/src/libopm'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/rds911/topm/topm/src/libopm'
make[3]: *** [all-recursive] Error 1
make[3]: Target `all' not remade because of errors.
make[3]: Leaving directory `/home/rds911/topm/topm/src/libopm'
Making all in .
make[3]: Entering directory `/home/rds911/topm/topm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT compat.o -MD -MP -MF ".deps/compat.Tpo" -c -o compat.o compat.c; \
then mv -f ".deps/compat.Tpo" ".deps/compat.Po"; else rm -f ".deps/compat.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT config-parser.o -MD -MP -MF ".deps/config-parser.Tpo" -c -o config-parser.o config-parser.c; \
then mv -f ".deps/config-parser.Tpo" ".deps/config-parser.Po"; else rm -f ".deps/config-parser.Tpo"; exit 1; fi
config-parser.y: In function 'int yyparse()':
config-parser.y:235: error: invalid conversion from 'void*' to 'ChannelConf*'
config-parser.y:257: error: invalid conversion from 'void*' to 'ChannelConf*'
config-parser.y:265: error: invalid conversion from 'void*' to 'ChannelConf*'
config-parser.y:273: error: invalid conversion from 'void*' to 'ChannelConf*'
config-parser.y:286: error: invalid conversion from 'void*' to 'UserConf*'
config-parser.y:332: error: invalid conversion from 'void*' to 'ScannerConf*'
config-parser.y:339: error: invalid conversion from 'void*' to 'ScannerConf*'
config-parser.y:465: error: invalid conversion from 'void*' to 'ProtocolConf*'
config-parser.y:514: error: invalid conversion from 'void*' to 'BlacklistConf*'
config-parser.y:541: error: invalid conversion from 'void*' to 'BlacklistConf*'
config-parser.y:548: error: invalid conversion from 'void*' to 'BlacklistConf*'
config-parser.y:555: error: invalid conversion from 'void*' to 'BlacklistConf*'
config-parser.y:566: error: invalid conversion from 'void*' to 'BlacklistConf*'
config-parser.y:580: error: invalid conversion from 'void*' to 'BlacklistConf*'
config-parser.y:583: error: invalid conversion from 'void*' to 'BlacklistReplyConf*'
make[3]: *** [config-parser.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT config-lexer.o -MD -MP -MF ".deps/config-lexer.Tpo" -c -o config-lexer.o config-lexer.c; \
then mv -f ".deps/config-lexer.Tpo" ".deps/config-lexer.Po"; else rm -f ".deps/config-lexer.Tpo"; exit 1; fi
config-lexer.l: In function 'void ccomment()':
config-lexer.l:219: error: 'input' was not declared in this scope
config-lexer.l:223: error: 'input' was not declared in this scope
make[3]: *** [config-lexer.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT config.o -MD -MP -MF ".deps/config.Tpo" -c -o config.o config.c; \
then mv -f ".deps/config.Tpo" ".deps/config.Po"; else rm -f ".deps/config.Tpo"; exit 1; fi
config.c: In function 'void config_init()':
config.c:89: error: invalid conversion from 'void*' to 'IRCConf*'
config.c:95: error: invalid conversion from 'void*' to 'OptionsConf*'
config.c:99: error: invalid conversion from 'void*' to 'OpmConf*'
config.c:110: error: invalid conversion from 'void*' to 'ExemptConf*'
make[3]: *** [config.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT dnsbl.o -MD -MP -MF ".deps/dnsbl.Tpo" -c -o dnsbl.o dnsbl.c; \
then mv -f ".deps/dnsbl.Tpo" ".deps/dnsbl.Po"; else rm -f ".deps/dnsbl.Tpo"; exit 1; fi
dnsbl.c: In function 'void dnsbl_add(scan_struct*)':
dnsbl.c:76: error: invalid conversion from 'void*' to 'BlacklistConf*'
dnsbl.c:84: error: invalid conversion from 'void*' to 'dnsbl_scan*'
dnsbl.c: In function 'void dnsbl_positive(scan_struct*, BlacklistConf*, unsigned char)':
dnsbl.c:116: error: invalid conversion from 'void*' to 'BlacklistReplyConf*'
dnsbl.c:132: error: invalid conversion from 'void*' to 'BlacklistReplyConf*'
dnsbl.c: In function 'void dnsbl_result(firedns_result*)':
dnsbl.c:173: error: invalid conversion from 'void*' to 'dnsbl_scan*'
make[3]: *** [dnsbl.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT inet.o -MD -MP -MF ".deps/inet.Tpo" -c -o inet.o inet.c; \
then mv -f ".deps/inet.Tpo" ".deps/inet.Po"; else rm -f ".deps/inet.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT irc.o -MD -MP -MF ".deps/irc.Tpo" -c -o irc.o irc.c; \
then mv -f ".deps/irc.Tpo" ".deps/irc.Po"; else rm -f ".deps/irc.Tpo"; exit 1; fi
irc.c: In function 'ChannelConf* get_channel(const char*)':
irc.c:682: error: invalid conversion from 'void*' to 'ChannelConf*'
irc.c: In function 'UserInfo* userinfo_create(char*)':
irc.c:742: error: invalid conversion from 'void*' to 'UserInfo*'
irc.c: In function 'void m_notice(char**, unsigned int, char*, UserInfo*)':
irc.c:1009: error: invalid conversion from 'void*' to 'regex_t*'
make[3]: *** [irc.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o log.o log.c; \
then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f ".deps/log.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
main.c: In function 'int main(int, char**)':
main.c:110: error: invalid conversion from 'void*' to 'char*'
main.c:111: error: invalid conversion from 'void*' to 'char*'
make[3]: *** [main.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT match.o -MD -MP -MF ".deps/match.Tpo" -c -o match.o match.c; \
then mv -f ".deps/match.Tpo" ".deps/match.Po"; else rm -f ".deps/match.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT malloc.o -MD -MP -MF ".deps/malloc.Tpo" -c -o malloc.o malloc.c; \
then mv -f ".deps/malloc.Tpo" ".deps/malloc.Po"; else rm -f ".deps/malloc.Tpo"; exit 1; fi
malloc.c: In function 'char* DupString(const char*)':
malloc.c:74: error: invalid conversion from 'void*' to 'char*'
make[3]: *** [malloc.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT list.o -MD -MP -MF ".deps/list.Tpo" -c -o list.o list.c; \
then mv -f ".deps/list.Tpo" ".deps/list.Po"; else rm -f ".deps/list.Tpo"; exit 1; fi
list.c: In function 'node_t* node_create(void*)':
list.c:29: error: invalid conversion from 'void*' to 'node_t*'
list.c: In function 'list_t* list_create()':
list.c:39: error: invalid conversion from 'void*' to 'list_t*'
make[3]: ***[list.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT negcache.o -MD -MP -MF ".deps/negcache.Tpo" -c -o negcache.o negcache.c; \
then mv -f ".deps/negcache.Tpo" ".deps/negcache.Po"; else rm -f ".deps/negcache.Tpo"; exit 1; fi
negcache.c: In function 'void nc_init(cnode**)':
negcache.c:78: error: invalid conversion from 'void*' to 'cnode*'
negcache.c: In function 'cnode* nc_insert(cnode*, long unsigned int)':
negcache.c:147: error: invalid conversion from 'void*' to 'cnode*'
negcache.c: In function 'void nc_rebuild(cnode*, cnode*, cnode*, time_t)':
negcache.c:215: error: expected unqualified-id before 'new'
negcache.c:215: error: expected initializer before 'new'
negcache.c:253: error: expected type-specifier before '=' token
negcache.c:253: error: invalid lvalue in assignment
negcache.c:254: error: expected type-specifier before '->' token
negcache.c:254: error: expected `;' before '->' token
make[3]: *** [negcache.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT opercmd.o -MD -MP -MF ".deps/opercmd.Tpo" -c -o opercmd.o opercmd.c; \
then mv -f ".deps/opercmd.Tpo" ".deps/opercmd.Po"; else rm -f ".deps/opercmd.Tpo"; exit 1; fi
opercmd.c: In function 'Command* command_create(short unsigned int, char*, char*, ChannelConf*)':
opercmd.c:234: error: invalid conversion from 'void*' to 'Command*'
opercmd.c: In function 'void cmd_restart(char*, char*, ChannelConf*)':
opercmd.c:403: error: 'main_restart' was not declared in this scope
make[3]: *** [opercmd.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT scan.o -MD -MP -MF ".deps/scan.Tpo" -c -o scan.o scan.c; \
then mv -f ".deps/scan.Tpo" ".deps/scan.Po"; else rm -f ".deps/scan.Tpo"; exit 1; fi
scan.c: In function 'void scan_init()':
scan.c:222: error: invalid conversion from 'void*' to 'ScannerConf*'
scan.c:223: error: invalid conversion from 'void*' to 'scanner_struct*'
scan.c: In function 'scan_struct* scan_create(char**, char*)':
scan.c:471: error: invalid conversion from 'void*' to 'scan_struct*'
scan.c: In function 'void scan_manual(char*, ChannelConf*)':
scan.c:1022: error: invalid conversion from 'void*' to 'scan_struct*'
make[3]: *** [scan.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT stats.o -MD -MP -MF ".deps/stats.Tpo" -c -o stats.o stats.c; \
then mv -f ".deps/stats.Tpo" ".deps/stats.Po"; else rm -f ".deps/stats.Tpo"; exit 1; fi
stats.c: In function 'void stats_output(char*)':
stats.c:199: error: invalid conversion from 'void*' to 'BlacklistConf*'
make[3]: *** [stats.o] Error 1
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT firedns.o -MD -MP -MF ".deps/firedns.Tpo" -c -o firedns.o firedns.c; \
then mv -f ".deps/firedns.Tpo" ".deps/firedns.Po"; else rm -f ".deps/firedns.Tpo"; exit 1; fi
firedns.c:100: error: expected identifier before ';' token
firedns.c:115: error: expected identifier before ';' token
firedns.c:151: error: expected identifier before ',' token
firedns.c: In function 'int firedns_getip(int, const char*, void*)':
firedns.c:320: error: expected unqualified-id before 'class'
firedns.c:320: error: expected `;' before 'class'
firedns.c: In function 's_connection* firedns_add_query()':
firedns.c:357: error: invalid conversion from 'void*' to 's_connection*'
firedns.c: At global scope:
firedns.c:389: error: expected identifier before ',' token
firedns.c: In function 'int firedns_build_query_payload(const char*, short unsigned int, short unsigned int, unsigned char*)':
firedns.c:423: error: expected primary-expression before 'class'
firedns.c:423: error: expected `)' before 'class'
firedns.c: In function 'firedns_result* firedns_getresult(int)':
firedns.c:691: error: expected unqualified-id before 'class'
firedns.c:691: error: expected `)' before 'class'
firedns.c:691: error: expected unqualified-id before 'class'
firedns.c:691: error: expected `)' before 'class'
firedns.c: In function 'void firedns_cycle()':
firedns.c:736: error: invalid conversion from 'void*' to 'pollfd*'
make[3]: *** [firedns.o] Error 1
make[3]: *** No rule to make target `libopm/src/.libs/libopm.a', needed by `topm'.
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DTOPM_ETCDIR="\"/root/topm/etc\"" -DTOPM_LOGDIR="\"/root/topm/var\"" -g -O2 -MT snprintf.o -MD -MP -MF ".deps/snprintf.Tpo" -c -o snprintf.o snprintf.c; \
then mv -f ".deps/snprintf.Tpo" ".deps/snprintf.Po"; else rm -f ".deps/snprintf.Tpo"; exit 1; fi
snprintf.c: In function 'int portable_vsnprintf(char*, size_t, const char*, char*)':
snprintf.c:544: error: invalid conversion from 'void*' to 'const char*'
make[3]: *** [snprintf.o] Error 1
make[3]: Target `all-am' not remade because of errors.
make[3]: Leaving directory `/home/rds911/topm/topm/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rds911/topm/topm/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rds911/topm/topm/src'
make[1]: Entering directory `/home/rds911/topm/topm'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/rds911/topm/topm'
make: *** [all-recursive] Error 1
make: Target `all' not remade because of errors.
 
Old 06-21-2007, 11:07 PM   #2
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
Here's one of your common errors:

In C, you can implicitly convert a void* to any other data pointer. In C++, you can't, so you need to cast each one to the appropriate type. Or, use new/delete instead of malloc/free.
 
Old 06-21-2007, 11:09 PM   #3
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
Also, C++ has more reserved words than C. For example, you can't use "new" or "class" as identifiers.
 
  


Reply

Tags
c++, g++, gcc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE freezing upon normal errors LBlin Slackware 2 05-15-2006 04:05 PM
Newbie attempting build of sane on Ubuntu, gets errors treader Linux - Newbie 5 04-01-2006 04:36 PM
asking for linux based project kuzhali_mozhi Linux - General 1 07-24-2004 09:12 AM
errors attempting to compile nvaudio module lasalsademuerte Slackware 2 12-02-2003 05:43 PM
Mandrake 9.1 Install Errors Normal? mark_2811 Linux - General 1 11-04-2003 03:18 PM


All times are GMT -5. The time now is 05:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration