Jump to content

Compiling fail (multiple definition of functions defined in main.cpp)


Recommended Posts

  • Bronze

Dear community,

 

from one day to an other (I didn't changed something related to that :o) I receive a multiple definition error of functions/variables defined in the main.cpp.

I don't know why :S

OBJDIR/test.o: In function `ContinueOnFatalError()':
/eos_src/game/src/test.cpp:66: multiple definition of `ContinueOnFatalError()'
OBJDIR/main.o:/eos_src/game/src/main.cpp:159: first defined here
OBJDIR/test.o: In function `ShutdownOnFatalError()':
/eos_src/game/src/test.cpp:70: multiple definition of `ShutdownOnFatalError()'
OBJDIR/main.o:/eos_src/game/src/main.cpp:183: first defined here
OBJDIR/test.o: In function `heartbeat(heart*, int)':
/eos_src/game/src/test.cpp:74: multiple definition of `heartbeat(heart*, int)'
OBJDIR/main.o:/eos_src/game/src/main.cpp:242: first defined here
OBJDIR/test.o: In function `Metin2Server_IsInvalid()':
/eos_src/game/src/test.cpp:78: multiple definition of `Metin2Server_IsInvalid()'
OBJDIR/main.o:/eos_src/game/src/main.cpp:364: first defined here
OBJDIR/test.o: In function `start(int, char**)':
/eos_src/game/src/test.cpp:102: multiple definition of `start(int, char**)'
OBJDIR/main.o:/eos_src/game/src/main.cpp:699: first defined here
OBJDIR/test.o: In function `main':
/eos_src/game/src/test.cpp:118: multiple definition of `main'
OBJDIR/main.o:/eos_src/game/src/main.cpp:444: first defined here
OBJDIR/test.o: In function `__gthread_trigger':
/usr/include/c++/4.2/bits/gthr-default.h:165: multiple definition of `max_bytes_written'
OBJDIR/main.o:/usr/include/c++/4.2/bits/gthr-default.h:165: first defined here
OBJDIR/test.o: In function `__gthread_trigger':
/eos_src/game/src/arena.h:106: multiple definition of `total_bytes_written'
OBJDIR/main.o:/usr/include/c++/4.2/bits/stl_tree.h:1335: first defined here
OBJDIR/test.o: In function `__gthread_trigger':
/usr/include/c++/4.2/bits/stl_tree.h:1335: multiple definition of `current_bytes_written'
OBJDIR/main.o:/usr/include/c++/4.2/bits/stl_algo.h:2885: first defined here
OBJDIR/test.o: In function `__gthread_trigger':
/eos_src/game/src/arena.h:106: multiple definition of `main_fdw'
OBJDIR/main.o:/usr/include/c++/4.2/tr1/hashtable_policy.h:346: first defined here
OBJDIR/test.o: In function `__gthread_trigger':
/usr/include/c++/4.2/bits/gthr-default.h:168: multiple definition of `udp_socket'
OBJDIR/main.o:/usr/include/c++/4.2/tr1/hashtable_policy.h:346: first defined here
OBJDIR/test.o: In function `__gthread_trigger':
/usr/include/c++/4.2/bits/stl_tree.h:1340: multiple definition of `g_bShutdown'
OBJDIR/main.o:/eos_src/game/src/main.cpp:364: first defined here

Who can help?

 

Regards

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.