![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jul 2003
Location: Brisbane
Posts: 469
|
I'm fairly new to c++.
I am using Visual Studio 2005 on Windows 2000 sp4. I am trying to compile a program and am getting C3065 undeclared identifier errors. All of the constants it is giving the errors for are defined in a header file which I have included at the top of the file. When I hover the mouse over them VS even brings up the declaration of them from the header file. Is this likely to be some sort of linking issue? Any help is appreciated. |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Dec 2001
Location: Melbourne
Posts: 1,392
|
Its a bit hard to say with out the code. I don't think it is a linking issue as it sounds like its being picked up by the compiler not the linker. Are you using any #ifndef statements in the header that might have a typo in them? Happened to me once, I just copied it across from a file and forgot to change #ifndef tag, so it was thinking the header had already been included.
__________________
"One good thing about music, when it hits you, you feel no pain." - Bob Marley OCAU Guitar Players Club OCAU Magic Club |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2003
Location: Brisbane
Posts: 469
|
Thanks for the reply. Not sure exactly what the problem was. But I created a new VS project copied the text into new files and it works. Go figure.
edit: Cancel that. It was the order of the includes.
Last edited by Eclipsor; 20th July 2006 at 12:17 PM. |
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|