| re: How to set the evironment variables?
constructor wrote:
[color=blue][color=green][color=darkred]
>>>
>>>I have installed dev-cpp 4.9.8£¬and it is just a wrap of gcc3.2. i just
>>>want
>>>to use g++ compile in command line, and i have set the environment
>>>variables, just like this:
>>> D:\>set lib
>>> lib=c:\Dev-Cpp\lib[/color]
>>
>>[...]
>>[color=darkred]
>>>my os is win2k.[/color]
>>[/color][/color]
To specify include/library paths, invoke g++ with "-I
C:\Dev-Cpp\include", "-I C:\Dev-cpp\include\c++", etc., and "-L
C:\Dev-Cpp\lib". I imagine that part of the point of dev-cpp is that the
IDE takes care of these things. If you're intent on using the command
line it would be simpler to use MinGW directly, or through MSYS (a small
unix-like environment for Windows that provides bash etc.). It really
shouldn't be necessary for you to know about details such as the
location of the standard headers, let alone to have to tell g++ about
them every time, and the system is capable of handling this for you if
it has been set up to do so.
I've tried to find the installation instructions in the dev-cpp tree and
had no luck, so I'm not surprised you're having trouble. If you still
can't get it working I'm willing to download the whole thing and see if
I can figure something out for you.
Regards,
Buster. |