Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 20th July 2006, 10:15 AM   #1
Eclipsor Thread Starter
Member
 
Join Date: Jul 2003
Location: Brisbane
Posts: 469
Default Compiling problems with vc++

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.
Eclipsor is offline   Reply With Quote

Join OCAU to remove this ad!
Old 20th July 2006, 11:45 AM   #2
BAC :S
Member
 
BAC :S's Avatar
 
Join Date: Dec 2001
Location: Melbourne
Posts: 1,392
Default

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
BAC :S is offline   Reply With Quote
Old 20th July 2006, 12:04 PM   #3
Eclipsor Thread Starter
Member
 
Join Date: Jul 2003
Location: Brisbane
Posts: 469
Default

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.
Eclipsor is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 6:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!