![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Linux Adapter and Rhapsody Topic Summary: Problems compiling aom Created On: 5-Nov-2008 15:48 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
I am currently trying to make an adapter for linux, however I think I must be missing something very obvious (or at least I hope it is obvious!) I am going in Share/LangCpp/ and I call the following from the prompt: make -f linuxbuild.mak all All goes well until it tries to compile aomthrd.cpp. I have included the build output. DEFAULT_CPP_FLAGS="-g" all make[1]: Entering directory `/home/devsys/rhapsody-7.1/Share/LangCpp/aom' gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aombrk.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomcalls.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomclass.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomdisp.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomeque.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomevent.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aominst.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomitem.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomstep.cpp gcc -g -I.. -I../osconfig/Linux -DUSE_IOSTREAM -DOMTRACER -c aomthrd.cpp ../omcom/om2str.h: In function 'void x2String(T, OMString& ) [with T = void*]': aomthrd.cpp:437: instantiated from here ../omcom/om2str.h:329: error: no matching function for call to 'x2String(void*& )' make[1]: *** [aomthrd.o] Error 1 make[1]: Leaving directory `/home/devsys/rhapsody-7.1/Share/LangCpp/aom' make: *** [aomlibs] Error 2 I understand what the problem is in terms of the code attempted to be compiled, but I am thinking that there is a setting or a define that perhaps is missing? Is anyone else seeing the same problem? Thanks very much in advance. Cheers, Sakis ------------------------- -- Sakis -- Edited: 5-Nov-2008 at 15:50 by sakis panou |
|
![]() |
|
![]() |
|
I changed the om2str.h file as shown below and the framework now builds.
//too early in GCC > v4.1.1 â€" since prototypes have not yet been declared //template<class T> TMPL_INL void x2String(T f, OMString& s) { // char * c = x2String(f); // s += c; // delete[] c; //} char* x2String(const char f); char* x2String(const bool f); char* x2String(const int f); char* x2String(const unsigned int f); char* x2String(const short f); char* x2String(const unsigned short f); char* x2String(const long f); char* x2String(const unsigned long f); char* x2String(const double f); char* x2String(const float f); char* x2String(const void* f); char* x2String(const void* f,const char*unk); char* x2String(const char* f); char* x2String(const OMString& s); char* x2String(const unsigned char f); =ifndef OM_NO_SPECIAL_SERIALIZE_LONG_DOUBLE char* x2String(const long double f); =endif // need to define template after prototype forward declarations template<class T> TMPL_INL void x2String(T f, OMString& s) { char * c = x2String(f); s += c; delete[] c; } |
|
![]() |
|
![]() |
|
Thanks Duncan
Got the change in and it worked a treat. Cheers, Sakis ------------------------- -- Sakis -- |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Linux Adapter and Rhapsody
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.