Advertisement

C++ help

Started by February 12, 2003 01:07 PM
4 comments, last by themind 21 years, 9 months ago
When im trying to run a program in visaul C++, it gives me an error. It says some error with cl.exe or something like that. Whenever i try to compile or build the program, it comes up with this error. Can someone help me?
The Mind!!
If you want help, we need more information.

What kind of program in VC++? (Win32,Console app, etc);

What line is giving you the error? What are you tryint to do?

Just saying "I have an error" is as vague as "Which star am I looking at"
TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno
Advertisement
quote: Original post by RhoneRanger
Just saying "I have an error" is as vague as "Which star am I looking at"


Epsilon Eridani ?

[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Im trying to run the Hello World! program. I even just copied the exact code they had in the tutorial to make sure it wasnt the code. It wasnt anything in the code.

I think it was in Win32, but i cant remember. Im not at my home computer right now so i cant check until later.

It said something like it cant find the function header... then something about cl.exe.

the program was named hi.cpp

when i tried to compile it would say hi.obj, 1 error
when i tried to build the exe it would say hi.exe, 1 error
The Mind!!
"Error in cl.exe" -> cl.exe failed when running, because it tried to compile buggy code.

Try it again, and copy&paste the compiler output here... For instance, adding "randomline" somewhere in my code returned :

--------------------Configuration: Execute - Win32 Debug--------------------
Compiling...
main.cpp
c:\developpement\visual studio 6\vc98\include\math.h(36) : error C2501: ''randomline'' : missing storage-class or type specifiers
Error executing cl.exe.

Execute.exe - 1 error(s), 0 warning(s)

ToohrVyk
-------------
Extatica - a free 3d game engine
Available soon!
Click here to learn more
Fruny .. Did you see that Eridani has a planet? Pretty cool!!

Anyway, like already said

themind, you probably did not copy something quite right, Paste the code in question here, and we will try to help.
TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno

This topic is closed to new replies.

Advertisement