Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 5-Nov-2008 15:48
User is offline View Users Profile Print this message


sakis panou

Posts: 2
Joined: 5-Nov-2008

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.

make -C aom -f linuxaom.mak CFG=aomtrace LIB_PREFIX=linux CPU= PATH_SEP=/
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
Report this to a Moderator Report this to a Moderator
 5-Nov-2008 15:57
User is offline View Users Profile Print this message


Duncan Perrett

Posts: 8
Joined: 27-Jun-2006

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;
}
Report this to a Moderator Report this to a Moderator
 5-Nov-2008 16:12
User is offline View Users Profile Print this message


sakis panou

Posts: 2
Joined: 5-Nov-2008

Thanks Duncan

Got the change in and it worked a treat.


Cheers,
Sakis

-------------------------
-- Sakis --
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 0 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.