MSys (CYGWIN?), CDT and ECLIPSE [message #143805] |
Fri, 22 April 2005 12:53  |
Eclipse User |
|
|
|
Originally posted by: karl.castleton.pnl.gov
I have successfully compiled, debugged a C++ application using MSys on a
Windows Machine. My recipe is as follows.
1) Let the CDT manage the project.
2) In the properties dialog for the project change the following.
3) Go to the Tools Settings Tab
4) Under the GCC C++ Compiler change "g++" to "c:\MinGW\bin\g++"
for Directories add C:\MinGW\Include and C:\MinGW\include\C++\3.2.3 (your
version may vary.
5) Under the GCC C++ Linker change "g++" to "c:\MinGW\bin\g++"
6) Set libraries to c:\MinGW\lib
7) Under GCC Assembler change "as" to "c:\MinGW\bin\as"
8) Go to the Build Settings
9) Uncheck the use default command
10) change "make -k" to "c:\MSys\1.0\bin\make -k --win32" The --win32
allows make to function properly outside the MSys environment.
11) In the Debug Properties (usually I get to this by click on the
executable and then choosing the bug Icon) change "gdb" to
"c:\MinGW\bin\gdb"
Now given all these steps does anyone know how to have these changes
remembered for all my C++ managed projects?
|
|
|
Re: MSys (CYGWIN?), CDT and ECLIPSE [message #143829 is a reply to message #143805] |
Fri, 22 April 2005 14:50   |
Eclipse User |
|
|
|
Originally posted by: schrader.cliss.net
Hi,
I must admit that I am not a Windows user, but afaik you can set a
PATH-variable by right clicking on "My Computer", then select
"properties" (or something like that, my system is not in English). If
you set the PATH to c:\MinGW\bin you would not have to change some of
the settings for every new project, I think.
Sorry, if I am wrong with this, as I said I don't use Windows with CDT.
Hope that could help,
Chris
KCastleton wrote:
> I have successfully compiled, debugged a C++ application using MSys on a
> Windows Machine. My recipe is as follows.
>
> 1) Let the CDT manage the project.
> 2) In the properties dialog for the project change the following.
> 3) Go to the Tools Settings Tab
> 4) Under the GCC C++ Compiler change "g++" to "c:\MinGW\bin\g++"
> for Directories add C:\MinGW\Include and C:\MinGW\include\C++\3.2.3
> (your version may vary.
> 5) Under the GCC C++ Linker change "g++" to "c:\MinGW\bin\g++"
> 6) Set libraries to c:\MinGW\lib
> 7) Under GCC Assembler change "as" to "c:\MinGW\bin\as"
> 8) Go to the Build Settings 9) Uncheck the use default command
> 10) change "make -k" to "c:\MSys\1.0\bin\make -k --win32" The --win32
> allows make to function properly outside the MSys environment.
> 11) In the Debug Properties (usually I get to this by click on the
> executable and then choosing the bug Icon) change "gdb" to
> "c:\MinGW\bin\gdb"
> Now given all these steps does anyone know how to have these changes
> remembered for all my C++ managed projects?
>
>
>
|
|
|
|
Re: MSys (CYGWIN?), CDT and ECLIPSE [message #144510 is a reply to message #143925] |
Mon, 02 May 2005 21:35  |
Eclipse User |
|
|
|
KCastleton wrote:
> Chris
>
> Thanks for the input, and what you suggest would probably work if I
> added both c:\MinGW\bin and c:\MSys\1.0\bin to my search path. I
> thought that there would be an eclipse centric way of doing this.
> Realize that the --win32 option on make cannot be handled this way. I
> assume the initial values can be changed by some mechanism from within
> eclipse.
>
> Thanks again for the input.
>
> Karl
>
Support is underway in CDT 3.0 builds, using the environment settings
for build process. There you can add now env-vars (system envvars or own
envvars) per project base.
Take a look if you want.
|
|
|
Powered by
FUDForum. Page generated in 0.06872 seconds