Crystal Space
Welcome, Guest. Please login or register.
September 22, 2014, 09:18:17 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2051 Topics by 8496 Members
Latest Member: Clairealbert
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Linker Error
« previous next »
Pages: [1] Print
Author Topic: Linker Error  (Read 2756 times)
Villu
Newbie
*
Posts: 5

viilu@hotmail.com
View Profile Email
« on: February 24, 2006, 02:00:08 pm »

Hello community,

Again, I have got into problems with compiling CS app's. All was working fine when suddenly I begun to get Linker error's. I didn't change project options or anything. Here are the errors:
Code:
Compiler: MinGW
Building Makefile: "D:\Developement\Villu\CrystalSpace\Makefile.win"
Executing  make...
make.exe -f "D:\Developement\Villu\CrystalSpace\Makefile.win" all
g++.exe simple.o  -o "CSemptyproj.exe" -L"D:/Programmid/MinGW/lib" ../../../Programmid/MinGW/lib/libgdi32.a ../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a 
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(win32.o)(.text+0xbf0): In function `ZN14Win32AssistantC2EP15iObjectRegistry':
d:/developement/CS/CS/libs/csutil/win32/win32.cpp:451: undefined reference to `_imp__GetStockObject@4'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(win32.o)(.text+0x1939): In function `ZN14Win32AssistantC1EP15iObjectRegistry':
d:/developement/CS/CS/libs/csutil/win32/win32.cpp:451: undefined reference to `_imp__GetStockObject@4'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0x4d): In function `ZNK12csStringFastILi36EE11GetCapacityEv':
d:/developement/CS/CS/./include/csutil/csstring.h: undefined reference to `bfd_openr'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0x83):d:/developement/CS/CS/./include/csutil/csstring.h: undefined reference to `bfd_close'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0xe5): In function `ZN12CrystalSpace5Debug10BfdSymbolsC1EPKcj':
d:/developement/CS/CS/libs/csutil/bfdsymbols.cpp:33: undefined reference to `bfd_openr'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0x11b):d:/developement/CS/CS/libs/csutil/bfdsymbols.cpp:37: undefined reference to `bfd_close'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0x147): In function `ZN12CrystalSpace5Debug10BfdSymbolsD2Ev':
d:/developement/CS/CS/libs/csutil/bfdsymbols.cpp:44: undefined reference to `bfd_close'

../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0x193): In function `ZN12CrystalSpace5Debug10BfdSymbolsD1Ev':
d:/developement/CS/CS/libs/csutil/bfdsymbols.cpp:44: undefined reference to `bfd_close'
../../CS/CS/out/msysx86/debug/libs/libcrystalspace.a(bfdsymbols.o)(.text+0x1e8): In function `ZN12CrystalSpace5Debug10BfdSymbols10CheckValidEv':

d:/developement/CS/CS/libs/csutil/bfdsymbols.cpp:50: undefined reference to `bfd_check_format'
collect2: ld returned 1 exit status

make.exe: *** [CSemptyproj.exe] Error 1
Execution terminated
I am using Dev-C++ version 4.9.9.2.
Could you give me some hints, please ?
Logged

Peace!
Villu
Escorter
Jr. Member
**
Posts: 94


View Profile Email
« Reply #1 on: February 24, 2006, 05:32:05 pm »

Use Jam instead of make!
Logged
Villu
Newbie
*
Posts: 5

viilu@hotmail.com
View Profile Email
« Reply #2 on: February 24, 2006, 06:17:17 pm »

Use Jam instead of make!
Im not compiling CS, but app's that use CS. To be exact, the tutorial on http://crystalspace3d.org/docs/online/manual/cs_4.2.1.5.php#4.2.1.5
Logged

Peace!
Villu
Villu
Newbie
*
Posts: 5

viilu@hotmail.com
View Profile Email
« Reply #3 on: February 25, 2006, 02:49:46 pm »

Okay, finally got it to work. I had to compile CS again, without --enable-debug. It seems like there is some sort of bug with libbfd.
Logged

Peace!
Villu
Stobbyo
Newbie
*
Posts: 10


View Profile Email
« Reply #4 on: December 20, 2008, 08:20:18 pm »

Hello,

I have exactly the same problem.

I'm on WindowsXP operating system.

I was doing a test, with "simple1" tutorial.

I'm using Code::Blocks. I've followed the tutorials on the site, to configure it.

I've build Crystal Space 1.2.1, with MinGW and MSYS(was new for me), with debug flag.

Here's the build log :

Quote
||=== CrystalTry, Debug ===|
C:\crystalspace-src-1.2.1\out\msysx86\debug\libs\libcrystalspace-1.2.a(bfdsymbols.o)||In function `ZNK12csStringFastILi36EE11GetCapacityEv'undecided
c:\crystalspace-src-1.2.1\.\include\csutil\csstring.h:(.text+0x5b)||undefined reference to `bfd_openr'|
c:\crystalspace-src-1.2.1\.\include\csutil\csstring.h:(.text+0x91)||undefined reference to `bfd_close'|
C:\crystalspace-src-1.2.1\out\msysx86\debug\libs\libcrystalspace-1.2.a(bfdsymbols.o)||In function `ZN2CS5Debug10BfdSymbolsC1EPKcj'undecided
c:\crystalspace-src-1.2.1\libs\csutil\bfdsymbols.cpp|33|undefined reference to `bfd_openr'|
c:\crystalspace-src-1.2.1\libs\csutil\bfdsymbols.cpp|37|undefined reference to `bfd_close'|
C:\crystalspace-src-1.2.1\out\msysx86\debug\libs\libcrystalspace-1.2.a(bfdsymbols.o)||In function `ZN2CS5Debug10BfdSymbolsD2Ev'undecided
c:\crystalspace-src-1.2.1\libs\csutil\bfdsymbols.cpp|44|undefined reference to `bfd_close'|
C:\crystalspace-src-1.2.1\out\msysx86\debug\libs\libcrystalspace-1.2.a(bfdsymbols.o)||In function `ZN2CS5Debug10BfdSymbolsD1Ev'undecided
c:\crystalspace-src-1.2.1\libs\csutil\bfdsymbols.cpp|44|undefined reference to `bfd_close'|
C:\crystalspace-src-1.2.1\out\msysx86\debug\libs\libcrystalspace-1.2.a(bfdsymbols.o)||In function `ZN2CS5Debug10BfdSymbols10CheckValidEv'undecided
c:\crystalspace-src-1.2.1\libs\csutil\bfdsymbols.cpp|50|undefined reference to `bfd_check_format'|
||=== Build finished: 7 errors, 0 warnings ===|

I've tried to rebuild my application in release mode, but the problem is the same.

Here's linker settings
Quote
libcrystalspace-1.2.a
libcrystalspace_opengl-1.2.a
libkernel32.a
libgdi32.a
libuser32.a

I also have "libcrystalspace_windows-1.2.a", i've tried to add it at different position but did not change anything.

I'm trying to compile Crystal Space since 3 days lol.

I know that undefined reference are often little mistake. So i'm sorry for posting and for faults(English).

Like Villu said three years ago lol :

Quote
It seems like there is some sort of bug with libbfd.

I hope i won't have to restart.

Thank you for your attention.

Bye bye,
« Last Edit: December 21, 2008, 12:34:19 am by Stobbyo » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 7.188 seconds with 15 queries.