Recognizing Compiler
Posted: Thu Dec 12, 2013 9:53 pm
I am a newbie to this, but I have not found much on the web to understand my problem.
I hope this is not an RTFM.
I installed the Digital Mars C/C++ compiler on my Windows 7 64 bit Home Premium laptop. I also previously installed Codelight.
As I was working through one of these "Teach Yourself C++" books, I essentially copied a piece of code from the book and tried
to compile it.
I made the requisite edits as was mentioned on the Forum help. I saw that the Mars compiler was not in the list of Build options.
So I made a new entry for it. As it asked for the assembler name, I left it blank as there was no "as" or similar executable in the bin directory.
I made sure I added a path so CL could find its way to the necessary executables. I did not specify any compiler flags (separate window).
In essence a vanilla C++ compiler.
The Build menu still had the compile option greyed out. Thinking CL updates only upon rebooting, I quit the program and restarted. Still
no ability to compile a program, though all my settings for the Mars compiler were there. I tried to directly compile the program in a command window.
Since the compiler did not locate the io library, there were a lot of errors in the program. Not surprising, but it at least showed me that the compiler
was working.
So the question is, how do I get the program to recognize and USE the Digital Mars compiler within CL?
Thanks for any help you can send my way.
I hope this is not an RTFM.
I installed the Digital Mars C/C++ compiler on my Windows 7 64 bit Home Premium laptop. I also previously installed Codelight.
As I was working through one of these "Teach Yourself C++" books, I essentially copied a piece of code from the book and tried
to compile it.
I made the requisite edits as was mentioned on the Forum help. I saw that the Mars compiler was not in the list of Build options.
So I made a new entry for it. As it asked for the assembler name, I left it blank as there was no "as" or similar executable in the bin directory.
I made sure I added a path so CL could find its way to the necessary executables. I did not specify any compiler flags (separate window).
In essence a vanilla C++ compiler.
The Build menu still had the compile option greyed out. Thinking CL updates only upon rebooting, I quit the program and restarted. Still
no ability to compile a program, though all my settings for the Mars compiler were there. I tried to directly compile the program in a command window.
Since the compiler did not locate the io library, there were a lot of errors in the program. Not surprising, but it at least showed me that the compiler
was working.
So the question is, how do I get the program to recognize and USE the Digital Mars compiler within CL?
Thanks for any help you can send my way.