Skip to Content

Compile Errors...

3 replies [Last post]
james.H
Offline
Joined: 04/17/2010

I'm trying to build the latest

Here's my setup...

Slackware 10.2
Hydrogen 0.94 revision 277

Here's the job output...

g++ -x c++-header -c -pipe -g -Wall -g -fPIC -D_REENTRANT -Wall -W -DALSA_SUPPORT -DJACK_SUPPORT -DFLAC_SUPPORT -DLADSPA_SUPPORT -DLRDF_SUPPORT -DOSS_SUPPORT -DCONFIG_PREFIX=\"/usr/local\" -DDATA_PATH=\"/usr/local/share/hydrogen/data\" -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.4/include/QtCore -I/usr/local/Trolltech/Qt-4.1.4/include/QtGui -I/usr/local/Trolltech/Qt-4.1.4/include -I../.. -Iinclude -I. -I. src/Precompiled.h -o objs/hydrogen.gch/c++
g++: language c++-header not recognized
g++: src/Precompiled.h: linker input file unused because linking not done
g++ -c -include objs/hydrogen -pipe -g -Wall -g -fPIC -D_REENTRANT -Wall -W -DALSA_SUPPORT -DJACK_SUPPORT -DFLAC_SUPPORT -DLADSPA_SUPPORT -DLRDF_SUPPORT -DOSS_SUPPORT -DCONFIG_PREFIX=\"/usr/local\" -DDATA_PATH=\"/usr/local/share/hydrogen/data\" -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.4/include/QtCore -I/usr/local/Trolltech/Qt-4.1.4/include/QtGui -I/usr/local/Trolltech/Qt-4.1.4/include -I../.. -Iinclude -I. -I. -o objs/tinystr.o src/xml/tinystr.cpp
:138861240:56064: objs/hydrogen: No such file or directory
In file included from src/xml/tinystr.cpp:25:
src/xml/tinyxml.h:193: warning: `static' is not at beginning of declaration
make[2]: *** [objs/tinystr.o] Error 1
make[2]: Leaving directory `/home/jamesh/src/hydrogen/libs/hydrogen'
make[1]: *** [sub-hydrogen-make_default] Error 2
make[1]: Leaving directory `/home/jamesh/src/hydrogen/libs'
make: *** [sub-libs-make_default] Error 2

The warning about >> static' is not at beginning of declaration
I edited libs/hydrogen/src/xml/tinyxml.h and placed static at the beginning to read static bool ....
Then I retried with the following...

g++ -x c++-header -c -pipe -g -Wall -g -fPIC -D_REENTRANT -Wall -W -DALSA_SUPPORT -DJACK_SUPPORT -DFLAC_SUPPORT -DLADSPA_SUPPORT -DLRDF_SUPPORT -DOSS_SUPPORT -DCONFIG_PREFIX=\"/usr/local\" -DDATA_PATH=\"/usr/local/share/hydrogen/data\" -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.4/include/QtCore -I/usr/local/Trolltech/Qt-4.1.4/include/QtGui -I/usr/local/Trolltech/Qt-4.1.4/include -I../.. -Iinclude -I. -I. src/Precompiled.h -o objs/hydrogen.gch/c++
g++: language c++-header not recognized
g++: src/Precompiled.h: linker input file unused because linking not done
g++ -c -include objs/hydrogen -pipe -g -Wall -g -fPIC -D_REENTRANT -Wall -W -DALSA_SUPPORT -DJACK_SUPPORT -DFLAC_SUPPORT -DLADSPA_SUPPORT -DLRDF_SUPPORT -DOSS_SUPPORT -DCONFIG_PREFIX=\"/usr/local\" -DDATA_PATH=\"/usr/local/share/hydrogen/data\" -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.4/include/QtCore -I/usr/local/Trolltech/Qt-4.1.4/include/QtGui -I/usr/local/Trolltech/Qt-4.1.4/include -I../.. -Iinclude -I. -I. -o objs/tinystr.o src/xml/tinystr.cpp
:138861240:56064: objs/hydrogen: No such file or directory
make[2]: *** [objs/tinystr.o] Error 1
make[2]: Leaving directory `/home/jamesh/src/hydrogen/libs/hydrogen'
make[1]: *** [sub-hydrogen-make_default] Error 2
make[1]: Leaving directory `/home/jamesh/src/hydrogen/libs'
make: *** [sub-libs-make_default] Error 2

OK, hints, clues, reprimands, etc?

-James

aikie
Offline
Joined: 04/17/2010

Hi

I think there is something wrong with your compiling enviroment.
g++: language c++-header not recognized
g++: src/Precompiled.h: linker input file unused because linking not done
Don't really know what you can do about it, maybe you should test compiling with another program and check if you see the same error popping up.
Greetz
aikie

james.H
Offline
Joined: 04/17/2010

I've built Ardour, Jamin, Muse, Swami, Ardour2, Jack, Hydrogen (0.93??)...

This one has stumped me. I tried a couple of months ago and had the same result. I guess I can continue using 0.93 'till this one is a bit more stable

-James

Sarge
Offline
Joined: 04/17/2010

You probably use gcc 3.x

You should use gcc 4.x

CU
Sarge