Author Topic: Installing the ACE Threads package on C::B  (Read 14224 times)

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #15 on: January 17, 2006, 02:16:47 pm »
Try to "other compiler options".
Can't find these settings...

Even if you just use already compiled libraries, you should always add the header files. Normally, they are stored into an include directory.
The ACE pack is installed directly to the INCLUDE folder, so nothing should be changed...
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Installing the ACE Threads package on C::B
« Reply #16 on: January 17, 2006, 02:20:56 pm »
Try to "other compiler options".
Can't find these settings...

Project-->Build options-->Compiler-->Other options

Michael

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #17 on: January 17, 2006, 02:26:18 pm »
Project-->Build options-->Compiler-->Other options
Thanks...
I added:
Code: [Select]
-mthreadsBut nothing changed.

what exactly should I add to the includes?
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Installing the ACE Threads package on C::B
« Reply #18 on: January 17, 2006, 02:32:49 pm »
Project-->Build options-->Compiler-->Other options
Thanks...
I added:
Code: [Select]
-mthreadsBut nothing changed.

C:B project has the same option included in the same place. Check if you should add other options.

what exactly should I add to the includes?

You should include the path where your include files are (normally inside an include directory). Include it here:

Project-->Build options-->Directories-->Compiler

Michael

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #19 on: January 17, 2006, 02:35:46 pm »
If you look at the txt file I added, you would see the the compiler is already looking for the files on:
Code: [Select]
C:\Program Files\CodeBlocks\DevPacks\include\ace(which was added automaticly by installation)
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Installing the ACE Threads package on C::B
« Reply #20 on: January 17, 2006, 02:44:21 pm »
If you look at the txt file I added, you would see the the compiler is already looking for the files on:
Code: [Select]
C:\Program Files\CodeBlocks\DevPacks\include\ace(which was added automaticly by installation)

Ok. Anyway, it does not find all the include files, e.g.,

Quote
C:/Program Files/CodeBlocks/DevPacks/include/ace/Object_Manager_Base.h:29:41: ace/os_include/sys/os_types.h: No such file or directory

Try to include other includes directories and check why the compiler cannot find the specified include files.

Michael

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #21 on: January 17, 2006, 02:50:45 pm »
well, maybe because I don't have this file at all...?  :?
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Installing the ACE Threads package on C::B
« Reply #22 on: January 17, 2006, 02:56:09 pm »
well, maybe because I don't have this file at all...?  :?

Yes, it is a possibility. You have to check if the not found files really exist or are in the specified path (may be the path is wrong).

Michael
 

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #23 on: January 17, 2006, 03:00:12 pm »
I did a comple hard-disk search...

well, again, that's not my build of ACE, I've downloaded it as a dev-pack
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #24 on: January 18, 2006, 12:52:58 pm »
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.

but when compiling i get this:
Code: [Select]
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
 
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Installing the ACE Threads package on C::B
« Reply #25 on: January 18, 2006, 01:19:23 pm »
And did you add the required libraries, too? Missing references are most often due to a forgotten link library.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #26 on: January 18, 2006, 03:30:36 pm »
You mean:
Code: [Select]
$ACE_ROOT/lib?
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #27 on: January 18, 2006, 03:50:22 pm »
Does:
Code: [Select]
warning: inline functionaffects anything?

I'm getting this when compiling the ACE...
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Installing the ACE Threads package on C::B
« Reply #28 on: January 18, 2006, 05:02:22 pm »
Does:
Code: [Select]
warning: inline functionaffects anything?

I'm getting this when compiling the ACE...

A warning is not an error :). Anyway, it can cause problems later or soon :(. Better solve any warnings if possible.

About your warning(s) you can try to find out with google what it is and how (hopenfully :)) to solve it. Check at ACE website and/or forum (if any) too.

Michael
 

Offline mtk

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Installing the ACE Threads package on C::B
« Reply #29 on: January 18, 2006, 05:05:50 pm »
I've found the solution, just asking for the affects...

anyway, it doesn't solve the problem of not being able toeven compile a single main.cpp...
http://mtk.077.co.il/pics/mtkred.jpg
"In a world without walls and fences,
who needs Windows & Gates?"