![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Hmm what seems to be the problem here? error C2061: syntax errorI have 3 files. A header file, and 2 .c files. When I include the header file in the first .c file it works fine... but when I compile the second .c file that includes the same header file I get the following error
Quote:
Here are the files: the header file: CPP / C++ / C Code:
this is the c file that compiles properly CPP / C++ / C Code:
the c file with errors CPP / C++ / C Code:
P.S. how do I do the syntax higlighting thing here? hmm C++ code? Last edited by dsmith : 14-Jun-2004 at 07:34.
Reason: Use [c] & [/c] for syntax highlighting
|
|
#2
|
||||
|
||||
|
Use the [C] & [/C] tags to hi-light your code. I can't really tell what the error is, but I have a question. Why is all of your code commented out in bistream.h?
__________________
-Aaron |
|
#3
|
|||
|
|||
|
open your bistream.h and mp3declarations.h files and put in the following statements like so:
CPP / C++ / C Code:
__________________
spasms!!! |
|
#4
|
|||
|
|||
|
Quote:
thanks, but I already tried that before and it didn't work I still can't get it to work Quote:
Thanks! Wish I could edit my post here.... Anyway, the functions are commented out because it causes more errors. Hmmm I'm wondering why the line CPP / C++ / C Code:
|
|
#5
|
|||
|
|||
|
try getting rid of .h and instead use std:
CPP / C++ / C Code:
__________________
spasms!!! |
|
#6
|
||||
|
||||
|
Your header file defines executable functions. It should be a CPP file.
You should not define variables and functions in headers -- only declarations. __________________
Age is unimportant -- except in cheese |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Operator Overloading: << | aaroncohn | C++ Forum | 36 | 07-Dec-2004 19:22 |
| OpenGL always reports error | mvt | OpenGL Programming | 2 | 04-Jun-2004 06:42 |
| Visual C++ 6 Compiler error | vip3r | C++ Forum | 2 | 13-Apr-2004 14:34 |
| Another "parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING" problem | Go3Team | MySQL / PHP Forum | 3 | 28-Feb-2004 17:35 |
| [script] E-mail webmaster error page | BobbyDouglas | PHP Code Library | 0 | 19-Aug-2003 20:10 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The