Link to home
Start Free TrialLog in
Avatar of cyar
cyar

asked on

compiling simple c++ pgm

Im trying to learn C++ by following sample pgms from a book. But as I compile the pgm, "error spawning c1.exe" message is displayed. This pgm, by the  way, is just a simple 'Hello World' pgm. Please help.
Avatar of tinchos
tinchos

Please, post your code cyar
What is the OS and compiler you are using.  And post your code
ASKER CERTIFIED SOLUTION
Avatar of brettmjohnson
brettmjohnson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
c1.exe isn't something in VC 6 or 7. It looks like a typo for cl.exe (which is the VC command line compiler)... or are you using MinGW?
> c1.exe isn't something in VC 6 or 7.

Yes it is.  c1.exe is the first pass of the MSVC/C++ compiler.  cl.exe is a small program that runs
c1.exe, c2.exe, c3.exe [?], and link.  In fact, "cl" stands for "compile and link".
I see c1.dll but not c1.exe. Is that a ye-olde version?
FYI,
I did a google search on c1.exe, and all that came up reffered to Python.

I dont' think your using the right stuff....
In any event, sounds like Paths and environment variables are not set correctly.....
Another Side Note:
Just found c1.exe on my machine, but it appears to be used for Visual J++ as it in my VisualStudio\VJ folder.
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in approximately one week.  I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:
https://www.experts-exchange.com/help.jsp#hs5

Tinchos
EE Cleanup Volunteer
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: brettmjohnson {http:#9656223}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
if you have the program on a CD and you are trying to compile it won't work since a
CD-ROM is read only.
Copy the file to your hard disk and then retry.