I've started over, & I think ACE is now compiled.
I added the ace directory to the include.
and added -mthreads to the build options.
Project : Console application
Compiler : GNU GCC Compiler (called directly)
Directory : D:\Study\Autumn-2006\Systems_Programming\PS9\Linux\Example1\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: SimpleThread.cpp
Linking console executable: D:\Study\Autumn-2006\Systems_Programming\PS9\Linux\Example1\console.exe
.objs\SimpleThread.o(.text+0x3c8):SimpleThread.cpp: undefined reference to `_imp___ZN14ACE_Time_Value4zeroE'
.objs\SimpleThread.o(.text+0x3e1):SimpleThread.cpp: undefined reference to `_imp___ZN14ACE_Time_Value8max_timeE'
.objs\SimpleThread.o(.text$_ZN8ACE_TaskI12ACE_MT_SYNCHEC2EP18ACE_Thread_ManagerP17ACE_Message_QueueIS0_E[ACE_Task<ACE_MT_SYNCH>::ACE_Task(ACE_Thread_Manager*, ACE_Message_Queue<ACE_MT_SYNCH>*)]+0x46):SimpleThread.cpp: undefined reference to `_imp___ZN13ACE_Task_BaseC2EP18ACE_Thread_Manager'
.objs\SimpleThread.o(.text$_ZN8ACE_TaskI12ACE_MT_SYNCHEC2EP18ACE_Thread_ManagerP17ACE_Message_QueueIS0_E[ACE_Task<ACE_MT_SYNCH>::ACE_Task(ACE_Thread_Manager*, ACE_Message_Queue<ACE_MT_SYNCH>*)]+0x1d0):SimpleThread.cpp: undefined reference to `_imp___ZN13ACE_Task_BaseD2Ev'
.objs\SimpleThread.o(.text$_ZN8ACE_TaskI12ACE_MT_SYNCHED2Ev[ACE_Task<ACE_MT_SYNCH>::~ACE_Task()]+0x9d):SimpleThread.cpp: undefined reference to `_imp___ZN13ACE_Task_BaseD2Ev'
.objs\SimpleThread.o(.text$_ZN8ACE_TaskI12ACE_MT_SYNCHED2Ev[ACE_Task<ACE_MT_SYNCH>::~ACE_Task()]+0xc9):SimpleThread.cpp: undefined reference to `_imp___ZN13ACE_Task_BaseD2Ev'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x3c):SimpleThread.cpp: undefined reference to `_imp___ZN22ACE_Message_Queue_BaseC2Ev'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x6c):SimpleThread.cpp: undefined reference to `_imp___ZN16ACE_Thread_MutexC1EPKcP15ACE_mutexattr_t'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x9d):SimpleThread.cpp: undefined reference to `_imp___ZN26ACE_Condition_Thread_MutexC1ERK16ACE_Thread_MutexPKcPv'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0xce):SimpleThread.cpp: undefined reference to `_imp___ZN26ACE_Condition_Thread_MutexC1ERK16ACE_Thread_MutexPKcPv'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x10c):SimpleThread.cpp: undefined reference to `_imp___ZN11ACE_Log_Msg18last_error_adapterEv'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x116):SimpleThread.cpp: undefined reference to `_imp___ZN11ACE_Log_Msg8instanceEv'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x145):SimpleThread.cpp: undefined reference to `_imp___ZN11ACE_Log_Msg15conditional_setEPKciii'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x162):SimpleThread.cpp: undefined reference to `_imp___ZN11ACE_Log_Msg3logE16ACE_Log_PriorityPKcz'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x19e):SimpleThread.cpp: undefined reference to `_imp___ZN26ACE_Condition_Thread_MutexD1Ev'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x1c1):SimpleThread.cpp: undefined reference to `_imp___ZN26ACE_Condition_Thread_MutexD1Ev'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x1e4):SimpleThread.cpp: undefined reference to `_imp___ZN16ACE_Thread_MutexD1Ev'
.objs\SimpleThread.o(.text$_ZN17ACE_Message_QueueI12ACE_MT_SYNCHEC1EjjP25ACE_Notification_Strategy[ACE_Message_Queue<ACE_MT_SYNCH>::ACE_Message_Queue(unsigned int, unsigned int, ACE_Notification_Strategy*)]+0x204):SimpleThread.cpp: undefined reference to `_imp___ZN22ACE_Message_Queue_BaseD2Ev'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x10):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::get_handle() const'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x14):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::set_handle(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x18):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::priority() const'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x1c):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::priority(int)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x20):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_input(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x24):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_output(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x28):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_exception(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x2c):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_timeout(ACE_Time_Value const&, void const*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x30):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_exit(ACE_Process*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x34):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_close(void*, unsigned long)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x38):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_signal(int, siginfo_t*, int*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x3c):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::resume_handler()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x40):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_qos(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x44):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::handle_group_qos(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x48):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::reactor(ACE_Reactor*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x4c):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::reactor() const'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x50):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::reactor_timer_interface() const'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x54):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::add_reference()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x58):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::remove_reference()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x5c):SimpleThread.cpp: undefined reference to `ACE_Task_Base::suspend()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x60):SimpleThread.cpp: undefined reference to `ACE_Task_Base::resume()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x64):SimpleThread.cpp: undefined reference to `ACE_Task_Base::open(void*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x68):SimpleThread.cpp: undefined reference to `ACE_Task_Base::close(unsigned long)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x6c):SimpleThread.cpp: undefined reference to `ACE_Task_Base::module_closed()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x70):SimpleThread.cpp: undefined reference to `ACE_Task_Base::put(ACE_Message_Block*, ACE_Time_Value*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x78):SimpleThread.cpp: undefined reference to `ACE_Task_Base::activate(long, int, int, long, int, ACE_Task_Base*, void**, void**, unsigned int*, unsigned long*)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x7c):SimpleThread.cpp: undefined reference to `ACE_Task_Base::wait()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x88):SimpleThread.cpp: undefined reference to `ACE_Shared_Object::init(int, char**)'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x8c):SimpleThread.cpp: undefined reference to `ACE_Shared_Object::fini()'
.objs\SimpleThread.o(.rdata$_ZTV12SimpleThread[vtable for SimpleThread]+0x90):SimpleThread.cpp: undefined reference to `ACE_Shared_Object::info(char**, unsigned int) const'
.objs\SimpleThread.o(.rdata$_ZTV8ACE_TaskI12ACE_MT_SYNCHE[vtable for ACE_Task<ACE_MT_SYNCH>]+0x10):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::get_handle() const'
.objs\SimpleThread.o(.rdata$_ZTV8ACE_TaskI12ACE_MT_SYNCHE[vtable for ACE_Task<ACE_MT_SYNCH>]+0x14):SimpleThread.cpp: undefined reference to `ACE_Event_Handler::set_handle(void*)'
Process terminated with status 1 (0 minutes, 14 seconds)
52 errors, 0 warnings