Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » TheIDE on FreeBSD -- Cannot link with pthread in debug mode
TheIDE on FreeBSD -- Cannot link with pthread in debug mode [message #5477] |
Mon, 25 September 2006 23:56 |
rycamor
Messages: 2 Registered: September 2006 Location: Florida, USA
|
Junior Member |
|
|
TheIDE runs fine in FreeBSD 6.1, but when I try to build the example apps in debug mode, they all end with
Linking...
/home/rick/upp/out/Core/GCC32.Debug.Gui/$blitz.o(.text+0x193): In function `Thread::Detach()':
: undefined reference to `pthread_detach'
/home/rick/upp/out/Core/GCC32.Debug.Gui/$blitz.o(.text+0x34e): In function `Thread::Wait(int)':
: undefined reference to `pthread_join'
When I build in 'release' (optimal) mode, they compile and link fine. Here is a diff I ran on the Makefiles in debug and release mode:
< Macro = -DflagGUI -DflagGCC -DflagDEBUG -DflagBLITZ -DflagFREEBSD
< CC = c++ -c -D_DEBUG -O0
---
> Macro = -DflagGUI -DflagGCC -DflagBLITZ -DflagFREEBSD
> CC = c++ -c -O2
12c12
< OutDir_AddressBook = $(UPPOUT)AddressBook/GCC32-Blitz-Debug-Freebsd-Gcc-Gui-Main/
---
> OutDir_AddressBook = $(UPPOUT)AddressBook/GCC32-Blitz-Freebsd-Gcc-Gui-Main/
14c14
...snip lots of similar output...
< c++ -static -o $(OutFile) -ggdb $(LIBPATH) -Wl,-O,2 $(LINKOPTIONS) \
---
> c++ -static -o $(OutFile) -Wl,-s $(LIBPATH) -Wl,-O,2 $(LINKOPTIONS) \
All other settings in "Output mode" are default. Could the difference be in "-s $(LIBPATH)"? I'm not too sure what -s means.
(Thanks for U++/TheIDE, BTW. It looks like a very nice toolkit so far)
|
|
|
Goto Forum:
Current Time: Thu Sep 12 01:48:30 CEST 2024
Total time taken to generate the page: 0.03154 seconds
|