What is wrong with compile?

  • Thread starter Billy N. Patton
  • Start date
B

Billy N. Patton

I'm moving some software from one directory to another(consolidating
efforts). It works where it is but when I move it it fails. It seems
to be coming from the locale_facets.h

uname -a
uname -a
Linux game03.dal.design.ti.com 2.4.21-15.EL #1 Thu Apr 22 00:27:41 EDT
2004 i686 i686 i386 GNU/Linux

g++ 3.2.3

perl 5.8.0

g++ -c -I/home/bpatton/tool_box -I/home/bpatton/tool_box/pcre-5.0
-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g3 -O2
-shared -DVERSION=\"2.00\" -DXS_VERSION=\"2.00\" -fpic
"-I/apps/perl/5.8.0/lib/5.8.0/i686-linux-thread-multi/CORE" Laff.c
In file included from /usr/include/c++/3.2.3/bits/basic_ios.h:41,
from /usr/include/c++/3.2.3/ios:51,
from /usr/include/c++/3.2.3/istream:44,
from /usr/include/c++/3.2.3/fstream:45,
from /home/bpatton/tool_box/Ui.h:10,
from Laff.xs:13:
/usr/include/c++/3.2.3/bits/locale_facets.h:1631:40: macro "do_open"
requires 7 arguments, but only 2 given
/usr/include/c++/3.2.3/bits/locale_facets.h:1643:34: macro "do_close"
requires 2 arguments, but only 1 given
/usr/include/c++/3.2.3/bits/locale_facets.h:1650:55: macro "do_open"
requires 7 arguments, but only 2 given
 
M

mlimber

Billy said:
I'm moving some software from one directory to another(consolidating
efforts). It works where it is but when I move it it fails. It seems
to be coming from the locale_facets.h

uname -a
uname -a
Linux game03.dal.design.ti.com 2.4.21-15.EL #1 Thu Apr 22 00:27:41 EDT
2004 i686 i686 i386 GNU/Linux

g++ 3.2.3

perl 5.8.0

g++ -c -I/home/bpatton/tool_box -I/home/bpatton/tool_box/pcre-5.0
-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g3 -O2
-shared -DVERSION=\"2.00\" -DXS_VERSION=\"2.00\" -fpic
"-I/apps/perl/5.8.0/lib/5.8.0/i686-linux-thread-multi/CORE" Laff.c
In file included from /usr/include/c++/3.2.3/bits/basic_ios.h:41,
from /usr/include/c++/3.2.3/ios:51,
from /usr/include/c++/3.2.3/istream:44,
from /usr/include/c++/3.2.3/fstream:45,
from /home/bpatton/tool_box/Ui.h:10,
from Laff.xs:13:
/usr/include/c++/3.2.3/bits/locale_facets.h:1631:40: macro "do_open"
requires 7 arguments, but only 2 given
/usr/include/c++/3.2.3/bits/locale_facets.h:1643:34: macro "do_close"
requires 2 arguments, but only 1 given
/usr/include/c++/3.2.3/bits/locale_facets.h:1650:55: macro "do_open"
requires 7 arguments, but only 2 given

Looks like the include files are probably different. Try turning on
some verbosity option on your compiler so it shows you every file it's
including (see g++ docs or ask in the g++ newsgroup), and then compare
the old list and the new. I bet that will show the problem. Also, why
are you including a file with .xs extension? That's certainly not
common practice.

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top