468,456 Members | 1,580 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

What is wrong with compile?

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
Jul 7 '06 #1
2 1532

Billy N. Patton wrote:
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

Jul 7 '06 #2
Check your gcc version
Billy N. Patton wrote:
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
Jul 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

72 posts views Thread by E. Robert Tisdale | last post: by
46 posts views Thread by Keith K | last post: by
13 posts views Thread by Jason Huang | last post: by
reply views Thread by Sam | last post: by
10 posts views Thread by Protoman | last post: by
669 posts views Thread by Xah Lee | last post: by
7 posts views Thread by Altemir | last post: by
4 posts views Thread by grizggg | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.