By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

What is wrong with compile?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a

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

P: n/a
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.