472,961 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,961 software developers and data experts.

error: syntax error before '*' token

I'm trying to compile glut 3.7.6 (dowbloaded from official site)using
devc++.
So I've imported the glut32.dsp into devc++, included manually some
headers, and start to compile.

It return a very strange error. In your experience, where I should
looking to find the real error? Surely the sintax of glut is correct...

gcc.exe -c glut_bitmap.c -o glut_bitmap.o -I"C:/Dev-Cpp/include"
-I"../../include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS
-D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SGI_OPENGL

In file included from glut_bitmap.c:8:
lutint.h:280: error: syntax error before '*' token
glutint.h:281: error: syntax error before '*' token
glutint.h:282: error: syntax error before '*' token
glutint.h:283: error: syntax error before '*' token
glutint.h:284: error: syntax error before '*' token
glutint.h:285: error: syntax error before '*' token
glutint.h:286: error: syntax error before '*' token
glutint.h:287: error: syntax error before '*' token
glutint.h:288: error: syntax error before '*' token
glutint.h:289: error: syntax error before '*' token
glutint.h:290: error: syntax error before '*' token
glutint.h:291: error: syntax error before '*' token
glutint.h:292: error: syntax error before '*' token
glutint.h:293: error: syntax error before '*' token
glutint.h:294: error: syntax error before '*' token
glutint.h:295: error: syntax error before '*' token
glutint.h:296: error: syntax error before '*' token
glutint.h:297: error: syntax error before '*' token
glutint.h:298: error: syntax error before '*' token
glutint.h:299: error: syntax error before '*' token
glutint.h:300: error: syntax error before '*' token
glutint.h:301: error: syntax error before '*' token
glutint.h:302: error: syntax error before '*' token
glutint.h:384: error: syntax error before "GLUTdisplayCB"
glutint.h:384: warning: no semicolon at end of struct or union
glutint.h:385: warning: data definition has no type or storage class
glutint.h:386: error: syntax error before "mouse"
glutint.h:386: warning: data definition has no type or storage class
glutint.h:387: error: syntax error before "motion"

etc etc...

Using google, I've found a similar case, but it's not english and I
don't understand:

http://exp.dk/spm/625931

Help!
Jan 11 '06 #1
3 16048
Manuel wrote:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using
devc++.
So I've imported the glut32.dsp into devc++, included manually some
headers, and start to compile.
Try posting to a glut user list or something. They are likely to have
seen this before or at least will be more equipped to figure out the
problem. In any case, without a concrete language question, this post
is off-topic here. See this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
It return a very strange error. In your experience, where I should
looking to find the real error?
Look in the header files indicated by the error messages. Are all the
types therein defined? If you can't figure it out, try to reduce the
code to a minimal sample that you could post here and that we could try
compile.
Surely the sintax of glut is correct...

[snip]

A gratuitous assumption. There are many compilers and configurations
out there. They have no doubt tested it on many of them, but they
simply can't test all of them.

Cheers! --M

Jan 11 '06 #2
On Wed, 11 Jan 2006 14:54:54 +0100, Manuel
<ma**********************@tin.it> wrote:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using
devc++.
So I've imported the glut32.dsp into devc++, included manually some
headers, and start to compile.
Help!


There are also helpful people in the newsgroups
below that work with glut:

comp.graphics.algorithms
comp.graphics.api.opengl

Good Luck
Jan 11 '06 #3
Manuel wrote:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using
devc++.
So I've imported the glut32.dsp into devc++, included manually some
headers, and start to compile.

It return a very strange error. In your experience, where I should
looking to find the real error? Surely the sintax of glut is correct...

gcc.exe -c glut_bitmap.c -o glut_bitmap.o -I"C:/Dev-Cpp/include"
-I"../../include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS
-D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SGI_OPENGL

In file included from glut_bitmap.c:8:
lutint.h:280: error: syntax error before '*' token


I would look before the '*' in question.

What type is directly before the "*"? Where is that type defined? Is
the file in which the type is defined, included by glut_bitmap.c, before
lutint.h is included?

This is off topic, since you haven't posted the code.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Jan 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Andrew James | last post by:
Gentlemen, I'm running into a problem whilst testing the parsing of a language I've created with TPG . It seems that for some reason, TPG balks when I try to parse an expression whose first...
1
by: Donald Canton | last post by:
Hi, I'm using Bjarne's book to learn C++ and am stuck on the Calc program in Section 6. Everything works fine except when I try to use istringstream to parse a token from the command line. I...
12
by: Bob Stearns | last post by:
I am trying to create a duplicate prevention trigger: CREATE TRIGGER is3.ard_u_unique BEFORE UPDATE OF act_recov_date ON is3.flushes REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL WHEN...
1
by: Minh | last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't get any project with STL includes to compile even if I create a new empty project (and added #include <string>). It gave me...
5
by: r.nikhilk | last post by:
Hi, Currently, we are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by...
1
by: sd2004 | last post by:
Could someone please help ? I am getting compiling error but do not understand why ? below is snipset of code: istream& operator>>(istream& is, test_ins& s){ is >>s.pass>>s.put>>s.type; ...
2
by: Charles Wilt | last post by:
I have a IBM iSeries (aka AS-400) running v5r3 of OS/400 that I access via a linked server from SQL Server 2000. The following select works fine: select * from...
4
by: nickyeng | last post by:
i calling this piece of java code in jsp : List<Customer> list = Customer.listby_page(currentRs); ... ... then it gives me the following error:
9
by: Adam Nielsen | last post by:
Hi all, I'm a bit confused about the syntax used to access a nested template class. Essentially I have a bunch of class types to represent different types of records in a database, and I want...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.