LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2003, 04:53 PM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
gcc compile errors ?


Hi, ive been trying to install BillardGL
www.billardgl.de

i tried the binary rpm,
it didnt like my glibc version, so i decided to compile from source, ( so it uses my version) redhat 9 fresh install.

(oh yes, and im aware that the the gam needs Nvidia type cards to run, and i have a nvidia GeForce 4, im using the correct drivers, and opengl is loaded and functioning properly)

anyway, i get lots of errors which apear t obe programming errors why is this ? since you can download the binary packages, the source must be able to compile, so what am i doing wrong

rpmbuild --rebuild thesource.src.rpm

here are my error messages, they dont pop up untill the buildstage.

In file included from Anzeige.cpp:15:
Anzeige.h:12: `GLfloat' was not declared in this scope
Anzeige.h:12: invalid data member initialization
Anzeige.h:12: (use `=' to initialize static data members)
Anzeige.h:12: variable or field `setzeStossStaerke' declared void
Anzeige.h:15: 'GLfloat' is used as a type, but is not defined as a type.
In file included from Anzeige.cpp:19:
createTexture.h:9: type specifier omitted for parameter `GLint'
createTexture.h:9: type specifier omitted for parameter `GLint'
createTexture.h:9: type specifier omitted for parameter `GLint'
createTexture.h:10: type specifier omitted for parameter `GLint'
createTexture.h:10: type specifier omitted for parameter `GLint'
createTexture.h:10: type specifier omitted for parameter `GLint'
createTexture.h:12: syntax error before `;' token
Anzeige.cpp: In constructor `Anzeige::Anzeige()':
Anzeige.cpp:26: `StossStaerke' undeclared (first use this function)
Anzeige.cpp:26: (Each undeclared identifier is reported only once for each
function it appears in.)
Anzeige.cpp: In member function `void Anzeige::male()':
Anzeige.cpp:38: `glPushMatrix' undeclared (first use this function)
Anzeige.cpp:39: `GL_QUADS' undeclared (first use this function)
Anzeige.cpp:39: `glBegin' undeclared (first use this function)
Anzeige.cpp:40: `glColor4f' undeclared (first use this function)
Anzeige.cpp:41: `glVertex2f' undeclared (first use this function)
Anzeige.cpp:52: `glEnd' undeclared (first use this function)
Anzeige.cpp:53: `glPopMatrix' undeclared (first use this function)
Anzeige.cpp: At global scope:
Anzeige.cpp:60: `GLfloat' was not declared in this scope
Anzeige.cpp:60: parse error before `)' token
Anzeige.cpp:60: no `void Anzeige::setzeStossStaerke(...)' member function
declared in class `Anzeige'
Anzeige.cpp: In member function `void Anzeige::setzeStossStaerke(...)':
Anzeige.cpp:61: `neuStossStaerke' undeclared (first use this function)
make: *** [Anzeige.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.5427 (%build)


RPM build errors:
user stefan does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.5427 (%build)

Last edited by qwijibow; 07-20-2003 at 04:55 PM.
 
Old 07-20-2003, 07:12 PM   #2
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Looks like the header gl.h was not included/found.
#include <GL/gl.h> is the usual way to include it.
Looks like this isn't the only problem with the includes though. Perhaps this is somehow related to this "stefan" and maybe his home directory ?
 
Old 07-21-2003, 07:20 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
ThanX, ill try that
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvu by gcc 4.0 .. compile errors! TokyoYank Linux - Software 0 11-01-2005 02:15 AM
kernel compile errors with gcc 3.4.2 MarleyGPN Linux - Software 0 09-29-2004 07:03 PM
gcc-3.3.1 compile errors RTT Linux From Scratch 1 02-28-2004 06:53 PM
gcc errors?? or are they? Rito Linux From Scratch 1 01-06-2003 04:54 PM
make and gcc compile errors sedandawk Linux - General 1 12-18-2002 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration