Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
rycamor is currently offline  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)
 
Read Message
Read Message
Read Message
Previous Topic: Rare behavior in Windows
Next Topic: TopMost problem (610-dev1) in kubuntu 5.10
Goto Forum:
  


Current Time: Fri Apr 26 14:02:35 CEST 2024

Total time taken to generate the page: 0.02107 seconds