[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Join not linking in threads (Compile error)

From: Jon Wilson
Subject: Join not linking in threads (Compile error)
Date: Tue, 18 Mar 2003 11:03:25 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

I am building using MingW32 and GCC3.2, the only thing I have editied from v1.0.8 is to remove the #define HAVE_OLD_IOSTREAM in win32/config.h, but when I compile this...
#include <cc++/thread.h>
using namespace std;
using namespace ost;
class myThread:public Thread{
       void run(){
int main(int argc, char *argv[]){
   myThread thread;
I get...
g++.exe src/buffer.o src/cmdoptns.o src/date.o src/digest.o src/dir.o src/dso.o src/engine.o src/event.o src/exception.o src/fifo.o src/file.o src/friends.o src/ftp.o src/getopt1.o src/getopt.o src/groups.o src/inaddr.o src/keydata.o src/md5.o src/mempager.o src/mutex.o src/network.o src/numbers.o src/peer.o src/persist.o src/pipe.o src/port.o src/process.o src/semaphore.o src/serial.o src/sha.o src/slog.o src/socket.o src/thread.o src/threadkey.o src/unix.o src/url.o src/urlstring.o src/xml.o main.o -o "commoncpp.exe" -L"C:/Dev-Cpp/lib" -L"C:/Work/commoncpp2-1.0.8b/win32" -lwsock32 -lws2_32 -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include" -I"c:/Dev-Cpp/include/c++/mingw32" -I"C:/Work/commoncpp2-1.0.8b/include" -I"C:/Work/commoncpp2-1.0.8b/win32"
main.o(.text+0x36):main.cpp: undefined reference to `ost::Thread::join()'
(Excuse the b in 1.0.8b, I have two copies built in the same folder)

Do you know why this could be?
__MINGW32__ is being set.
Jon Wilson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]