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

help for code portability.

Maybe it's a bit off topic, but...

I've got  a problem with  a program I'm  developing in c++.  It compiles
with  gcc under  linux on  sparc but  it doesn't  compile on  solaris on

The code is

#define dump(var) monitor._dump(var, __FILE__, __LINE__, __PRETTY_FUNCTION__, __STRING(var))

When I try to copile it I've got the following error under solaris:

bott@bella:/tmp/nanuccoli-0.3/src/medium$ make
c++ -DPACKAGE=\"nanuccoli\" -DVERSION=\"0.3\" -DHAVE_ARPA_INET_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_STRINGS_H=1 -DSTDC_HEADERS=1 -DHAVE_BZERO=1  -I. -I. -I../.. -I../.. -I../low    -g -O2 -c parser.cc
parser.cc: In method `void Parser::parseHearInfo()':
parser.cc:232: warning: implicit declaration of function `int __STRING(...)'
parser.cc:232: no matching function for call to `Monitor::_dump (char *&, char[10], int, char[201],
../low/monitor.h:85: candidates are: Monitor::_dump<char *>(char *, const char *, int, const char *, const char *)
*** Error code 1
make: Fatal error: Command failed for target `parser.o'

Why  doesn't it  find  __STRING(...) ?  What  can I  do  for having  the
portability of my code?

Non c'e' piu' forza nella normalita', c'e' solo monotonia.

Reply to: