C++ library quetions

Started by
22 comments, last by Raduprv 18 years, 9 months ago
OMG, my first thread here :D Anyway, I have a problem. I never used C++ before, as all of my/our projects are C. However, we had to use Cal3D so there is one single C++ file, an interface between a C++ library and our C project. So now I am getting a LOT of linking errors, especially to trivail stuff such as new, delete, and so on. Here is the log:
Quote: Compiler: Default compiler Building Makefile: "F:\my game\Makefile.win" Executing make clean rm -f 2d_objects.o 3d_objects.o actor_scripts.o actors.o asc.o colors.o console.o cursors.o dialogues.o draw_scene.o errors.o events.o filter.o font.o frustum.o gl_init.o ignore.o init.o interface.o items.o lights.o main.o manufacture.o map_io.o md2loader.o misc.o multiplayer.o new_actors.o new_character.o particles.o paste.o reflection.o shadows.o sound.o spells.o stats.o text.o textures.o tile_map.o trade.o weather.o md5.o cache.o knowledge.o hud.o encyclopedia.o pathfinder.o buddy.o questlog.o elwindows.o pm_log.o keys.o widgets.o translate.o options.o elconfig.o timers.o rules.o sector.o consolewin.o bags.o gamewin.o loginwin.o mapwin.o alphamap.o tabs.o openingwin.o chat.o books.o help.o storage.o highlight.o cal3d_wrapper.o cal.o elc_private.res el.exe gcc.exe -D__DEBUG__ -c 2d_objects.c -o 2d_objects.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c 3d_objects.c -o 3d_objects.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c actor_scripts.c -o actor_scripts.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c actors.c -o actors.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c asc.c -o asc.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c colors.c -o colors.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c console.c -o console.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c cursors.c -o cursors.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c dialogues.c -o dialogues.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c draw_scene.c -o draw_scene.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c errors.c -o errors.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c events.c -o events.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c filter.c -o filter.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c font.c -o font.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c frustum.c -o frustum.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c gl_init.c -o gl_init.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c ignore.c -o ignore.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c init.c -o init.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c interface.c -o interface.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c items.c -o items.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c lights.c -o lights.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c main.c -o main.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c manufacture.c -o manufacture.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c map_io.c -o map_io.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c md2loader.c -o md2loader.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c misc.c -o misc.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c multiplayer.c -o multiplayer.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c new_actors.c -o new_actors.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c new_character.c -o new_character.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c particles.c -o particles.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c paste.c -o paste.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c reflection.c -o reflection.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c shadows.c -o shadows.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c sound.c -o sound.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c spells.c -o spells.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c stats.c -o stats.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c text.c -o text.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c textures.c -o textures.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c tile_map.c -o tile_map.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c trade.c -o trade.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c weather.c -o weather.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c md5.c -o md5.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c cache.c -o cache.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c knowledge.c -o knowledge.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c hud.c -o hud.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c encyclopedia.c -o encyclopedia.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c pathfinder.c -o pathfinder.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c buddy.c -o buddy.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c questlog.c -o questlog.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c elwindows.c -o elwindows.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c pm_log.c -o pm_log.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c keys.c -o keys.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c widgets.c -o widgets.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c translate.c -o translate.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c options.c -o options.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c elconfig.c -o elconfig.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c timers.c -o timers.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c rules.c -o rules.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c sector.c -o sector.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c consolewin.c -o consolewin.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c bags.c -o bags.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c gamewin.c -o gamewin.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c loginwin.c -o loginwin.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c mapwin.c -o mapwin.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c alphamap.c -o alphamap.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c tabs.c -o tabs.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c openingwin.c -o openingwin.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c chat.c -o chat.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c books.c -o books.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c help.c -o help.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c storage.c -o storage.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 gcc.exe -D__DEBUG__ -c highlight.c -o highlight.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 g++.exe -D__DEBUG__ -c cal3d_wrapper.cpp -o cal3d_wrapper.o -I"F:/Dev-Cpp/include/c++" -I"F:/Dev-Cpp/include/c++/mingw32" -I"F:/Dev-Cpp/include/c++/backward" -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -g3 gcc.exe -D__DEBUG__ -c cal.c -o cal.o -I"F:/Dev-Cpp/include" -I"F:/C++/Include/sdl" -I"F:/C++/Include/OpenAl" -I"F:/Dev-Cpp/include/libxml" -DWINDOWS -DELC -DCACHE_SYSTEM -DLOAD_XML -march=i586 -DNEW_CLIENT -g3 windres.exe -i elc_private.rc -I rc -o elc_private.res -O coff gcc.exe -D__DEBUG__ 2d_objects.o 3d_objects.o actor_scripts.o actors.o asc.o colors.o console.o cursors.o dialogues.o draw_scene.o errors.o events.o filter.o font.o frustum.o gl_init.o ignore.o init.o interface.o items.o lights.o main.o manufacture.o map_io.o md2loader.o misc.o multiplayer.o new_actors.o new_character.o particles.o paste.o reflection.o shadows.o sound.o spells.o stats.o text.o textures.o tile_map.o trade.o weather.o md5.o cache.o knowledge.o hud.o encyclopedia.o pathfinder.o buddy.o questlog.o elwindows.o pm_log.o keys.o widgets.o translate.o options.o elconfig.o timers.o rules.o sector.o consolewin.o bags.o gamewin.o loginwin.o mapwin.o alphamap.o tabs.o openingwin.o chat.o books.o help.o storage.o highlight.o cal3d_wrapper.o cal.o elc_private.res -o "el.exe" -L"F:/Dev-Cpp/lib" -L"F:/Dev-Cpp/lib" -mwindows -lSDL -lopengl32 -lvorbisfile -liberty F:/C++/Lib/SDL_net.lib ../C++/Dev-Cpp/lib/ALut.lib ../C++/Dev-Cpp/lib/wrap_oal.lib ../Dev-Cpp/lib/libxml2_dynamic.lib ../Dev-Cpp/lib/iconv.lib ../Dev-Cpp/lib/cal3d.a ../Dev-Cpp/lib/libglu32.a F:/Dev-Cpp/lib/libmoldname.a(string_old.o)(.text+0x0):string_old.c: multiple definition of `strcasecmp' ../Dev-Cpp/lib/cal3d.a(loader.o)(.text$strcasecmp+0x0):loader.cpp: first defined here cal3d_wrapper.o(.text+0xfc): In function `CalAnimationAction_New': F:/my game/cal3d_wrapper.cpp:79: undefined reference to `operator new(unsigned)' cal3d_wrapper.o(.text+0x12c):F:/my game/cal3d_wrapper.cpp:79: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x151):F:/my game/cal3d_wrapper.cpp:79: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x202): In function `CalAnimationCycle_New': F:/my game/cal3d_wrapper.cpp:103: undefined reference to `operator new(unsigned)' cal3d_wrapper.o(.text+0x232):F:/my game/cal3d_wrapper.cpp:103: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x257):F:/my game/cal3d_wrapper.cpp:103: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x32f): In function `CalBone_Delete': F:/my game/cal3d_wrapper.cpp:137: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x3f7): In function `CalBone_New': F:/my game/cal3d_wrapper.cpp:182: undefined reference to `operator new(unsigned)' cal3d_wrapper.o(.text+0x427):F:/my game/cal3d_wrapper.cpp:182: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x44c):F:/my game/cal3d_wrapper.cpp:182: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x53f): In function `CalCoreAnimation_Delete': F:/my game/cal3d_wrapper.cpp:227: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x584): In function `Z20CalCoreAnimation_NewP16CalCoreAnimation': F:/my game/cal3d_wrapper.cpp:249: undefined reference to `operator new(unsigned)' cal3d_wrapper.o(.text+0x5b1):F:/my game/cal3d_wrapper.cpp:249: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x5d6):F:/my game/cal3d_wrapper.cpp:249: undefined reference to `operator delete(void*)' cal3d_wrapper.o(.text+0x67b): In function `CalCoreBone_Delete': F:/my game/cal3d_wrapper.cpp:273: undefined reference to `operator delete(void*)'
I didn't post it all, because it's 500 lines. So what exactly should I do? I guess include some C++ libraries in my project? But which libraries? I am using DevC++ (gcc). Any help would be greatly appreciated.
Advertisement
Try using g++ for your link step instead. It should automagically bring in the C++ standard library archive.
The thing is, I have to link a lot of C generated .o files with the C++ generated cal3d_wrapper.o
Any idea how would I use g++ from DevCPP?
Well, I don't use DevCPP myself, so I wouldn't know. You can probably just add libstdc++ via -l and get it to work with just gcc then.
Yar! Just go to the project options->files, then find the file that you want compiled as C++, and select... "Compile as C++". Works for me. :)
Quote:Original post by Endogenous
Yar! Just go to the project options->files, then find the file that you want compiled as C++, and select... "Compile as C++". Works for me. :)


I did that.
My problem is nto with COMPILING it. It compiles just fine. But linking is another issue.
*installing Dev-C++*
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Quote:Original post by SiCrane
Well, I don't use DevCPP myself, so I wouldn't know. You can probably just add libstdc++ via -l and get it to work with just gcc then.


Great, that did the trick!
Now I am down to only a few errors:
Quote:
F:/Dev-Cpp/lib/libmoldname.a(string_old.o)(.text+0x0):string_old.c: multiple definition of `strcasecmp'
../Dev-Cpp/lib/cal3d.a(loader.o)(.text$strcasecmp+0x0):loader.cpp: first defined here

../Dev-Cpp/lib/cal3d.a(loader.o)(.data$_ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE+0x1c):loader.cpp: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)'
../Dev-Cpp/lib/cal3d.a(loader.o)(.data$_ZTVSt13basic_filebufIcSt11char_traitsIcEE+0x1c):loader.cpp: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)'

make.exe: *** [el.exe] Error 1

Execution terminated


The strcasecmp I guess I'll manage to take care of it myself (altough suggestions would be useful).
The last two, however, I have no idea. I guess I will have to include another library. Which one would that be?
Quote:Original post by Fruny
*installing Dev-C++*


If you have a LOT of free time and just don't know what to do with it (that is, you are bored out of your mind) and feel like helping me (and the rest of the EL developers using DevC++) you might want to try to get the code from the CVS: http://developer.berlios.de/cvs/?group_id=1256
As a side note, it works fine for those who use VC or Linux.
Another option seems to be to create the project as a C++ project, and then set your individual C files to be compiled as C in the project options.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement