[Bug 396636] New: C++ library includes are environmental variables create problems for compiling c++ programs
https://bugzilla.novell.com/show_bug.cgi?id=396636 Summary: C++ library includes are environmental variables create problems for compiling c++ programs Product: openSUSE 11.0 Version: RC 1 Platform: HP OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: ah@forex.pl QAContact: qa@suse.de Found By: --- I am not sure if this is a bug - maybe I just don't know how to set up environment properly. However nothing similar happened under Suse 10 nor Fedora 8 when i try to build custom application I am getting include errors for and from within standard libraries (I have installed all development packages including kdevelop) like this: g++ -c -D_REENTRANT -Wall -Wextra -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DMAKEMEGOD -ggdb2 -D_DEBUG -O0 -D__interface=struct -DWNDEBUG -DWNMESSAGE -I../borg/ -I../srchybrid/ -I../srchybrid/Kademlia/users/ -I../srchybrid/compat/ -I../srchybrid/win-compat/ -I../srchybrid/mfc-compat/ -I../money/ -I../srchybrid/Kademlia/io/ -I../srchybrid/Kademlia/kademlia/ -I../srchybrid/Kademlia/net/ -I../srchybrid/Kademlia/routing/ -I../srchybrid/Kademlia/utils/ -I../ -I../srchybrid/iface/ -I../ca/ -I.-I../cryptlib/ -D__cdecl= -pipe -isystem /usr//mkspecs/linux-g++ -isystem /usr/include/db44 -isystem /usr/include/db44/linux -isystem /usr/include/db44/include -isystem /usr//include/QtCore -isystem /usr//include/QtNetwork -isystem /usr//include/QtGui -isystem /usr//include -o ./o/callGUI.o ../srchybrid/iface/callGUI.cpp In file included from /usr/include/c++/4.3/bits/postypes.h:47, from /usr/include/c++/4.3/bits/char_traits.h:47, from /usr/include/c++/4.3/string:47, from ../borg/callGUI.h:13, from ../srchybrid/iface/callGUI.cpp:15: /usr/include/c++/4.3/cwchar:52:24: error: wchar.h: No such file or directory In file included from /usr/include/c++/4.3/bits/char_traits.h:48, from /usr/include/c++/4.3/string:47, from ../borg/callGUI.h:13, from ../srchybrid/iface/callGUI.cpp:15: /usr/include/c++/4.3/cstdio:50:24: error: stdio.h: No such file or directory In file included from /usr/include/c++/4.3/i586-suse-linux/bits/c++locale.h:47, from /usr/include/c++/4.3/bits/localefwd.h:47, from /usr/include/c++/4.3/string:50, from ../borg/callGUI.h:13, from ../srchybrid/iface/callGUI.cpp:15: /usr/include/c++/4.3/clocale:48:25: error: locale.h: No such file or directory In file included from /usr/include/c++/4.3/bits/localefwd.h:49, from /usr/include/c++/4.3/string:50, from ../borg/callGUI.h:13, from ../srchybrid/iface/callGUI.cpp:15: /usr/include/c++/4.3/cctype:49:24: error: ctype.h: No such file or directory In file included from ../borg/mail_template.h:13, from ../borg/callGUI.h:15, from ../srchybrid/iface/callGUI.cpp:15: /usr/include/c++/4.3/ctime:49:23: error: time.h: No such file or directory In file included from /usr//include/boost/config/platform/linux.hpp:14, from /usr//include/boost/config.hpp:53, from /usr//include/boost/shared_ptr.hpp:17, from ../borg/borgpaymentenums.h:14, from ../borg/callGUI.h:20, from ../srchybrid/iface/callGUI.cpp:15: /usr/include/c++/4.3/cstdlib:73:25: error: stdlib.h: No such file or directory from another try (installation) I got this strange error from gcc: g++: /linux: No such file or directory but there were no other include errors reported so I guess it has something to do with environmental variables (I attach output of set) what am I doing wrong? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=396636
User ah@forex.pl added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c1
--- Comment #1 from Andrew Horoszczak
https://bugzilla.novell.com/show_bug.cgi?id=396636
User ah@forex.pl added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c2
--- Comment #2 from Andrew Horoszczak
https://bugzilla.novell.com/show_bug.cgi?id=396636
User pth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c3
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=396636
User ah@forex.pl added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c4
Andrew Horoszczak
https://bugzilla.novell.com/show_bug.cgi?id=396636
User ah@forex.pl added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c5
--- Comment #5 from Andrew Horoszczak
https://bugzilla.novell.com/show_bug.cgi?id=396636
User pth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c6
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=396636
User ah@forex.pl added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c7
--- Comment #7 from Andrew Horoszczak
https://bugzilla.novell.com/show_bug.cgi?id=396636
User pth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=396636#c8
--- Comment #8 from Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=396636
Philipp Thomas
participants (1)
-
bugzilla_noreply@novell.com