LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
Search this Thread
Old 05-07-2003, 12:58 PM   #1
stodge
Member
 
Registered: Jan 2002
Posts: 52

Rep: Reputation: 15
Linker problems on Mandrake 9.1


I'm flummoxed by some linker errors I'm getting with g++/ld on Mandrake 9.1. I would understand why I was getting lots of undefined references while linking, but I'm only getting a few and that's mainly what's confusing me. Any suggestions greatly appreciated. I've searched Google and found many hits but none give an explanation as to what's going on or possible solutions.

Thanks

(P.S. Sorry for the extra wide screen, but I don't know how to post long lines without screwing the size up.)

I'm using ld version:

GNU ld version 2.13.90.0.18 20030121

and g++ version:

Reading specs from /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)


Code:
make -f testSDL.mk
Building the testSDL application.
g++ -o testSDL hbFPSTimer.o hbSDLApplication.o hbSDLFrameTimer.o hbSDLMaterial.o hbSDLMaterialManagerImpl.o hbSDLWindowImpl.o testSDL.o -L../lib/linux -lHabitatCoreEngine -lHabitatAudioEngine -lHabitatInputEngine -lHabitatRenderEngine -lHabitatGameEngine -lSDL -lSDL_image -L/home/mike/Development/lua/lib -llua -llualib -L/home/mike/Development/tolua/lib -ltolua -lGL -lGLU -L/usr/X11R6/lib -L/opt/fmod/api -lfmod-3.62
/home/mike/Development/lua/lib/liblualib.a(liolib.o)(.text+0xd69): In function `io_tmpname':
: the use of `tmpnam' is dangerous, better use `mkstemp'
../lib/linux/libHabitatGameEngine.a(hbSceneManager.o)(.text+0xcec): In function `Habitat::Game::hbSceneManager::CreateEntity(char const*, char const*)':
: undefined reference to `Habitat::Core::hbFileException::~hbFileException [in-charge]()'
../lib/linux/libHabitatGameEngine.a(hbSceneManager.o)(.text+0xd12): In function `Habitat::Game::hbSceneManager::CreateEntity(char const*, char const*)':
: undefined reference to `Habitat::Core::hbFileException::~hbFileException [in-charge]()'
../lib/linux/libHabitatGameEngine.a(hbSceneManager.o)(.gcc_except_table+0xdc): undefined reference to `typeinfo for Habitat::Core::hbFileException'
../lib/linux/libHabitatGameEngine.a(hbSceneManager.o)(.gnu.linkonce.t._ZN7Habitat4Core15hbFileExceptionC1ERKS1_+0x1d): In function `Habitat::Core::hbFileException::hbFileException[in-charge](Habitat::Core::hbFileException const&)':
: undefined reference to `vtable for Habitat::Core::hbFileException'
../lib/linux/libHabitatGameEngine.a(hbCamera_lua.o)(.gnu.linkonce.t._ZN7Habitat4Game8hbCamera11SetViewportEiiii+0x3a): In function `Habitat::Game::hbCamera::SetViewport(int, int, int, int)':
: undefined reference to `Habitat::Render::hbBaseViewport::hbBaseViewport[in-charge](int, int, int, int)'
../lib/linux/libHabitatGameEngine.a(hbCamera.o)(.text+0x3bb): In function `Habitat::Game::hbCamera::hbCamera[not-in-charge](char const*)':
: undefined reference to `Habitat::Render::hbBaseViewport::hbBaseViewport[in-charge](int, int, int, int)'
../lib/linux/libHabitatGameEngine.a(hbCamera.o)(.text+0x62b): In function `Habitat::Game::hbCamera::hbCamera[in-charge](char const*)':
: undefined reference to `Habitat::Render::hbBaseViewport::hbBaseViewport[in-charge](int, int, int, int)'
collect2: ld returned 1 exit status
make: *** [testSDL] Error 1
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker errors with Kylix3 C++ on Mandrake 9.1 HVDV Programming 10 08-31-2006 12:12 AM
Linker problems daveyboy685 Programming 3 03-31-2005 06:08 PM
problems with linking objects -- must know some nasm\ASM\linker Paul6253 Programming 1 10-26-2004 09:33 PM
Problems with GNU linker ld chip1081 Linux - Software 5 10-15-2004 05:46 PM
Kylix 3 on mandrake 9.1 linker error jcampos Programming 2 09-05-2003 08:23 AM


All times are GMT -5. The time now is 08:50 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