Thread: [Dev-C++] run gcc from command line
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Juan A. N. P. <ma1...@ma...> - 2004-02-09 22:50:15
|
Hello,
I know this question is not really about dev-cpp but the compiler.. I
remember that on previous versions of dev-cpp the Mingw/GCC installed
with it allowed me to compile from a command line (dos window).
However, last version of dev-cpp (including the updated compiler)
does not seem to allow this as transparent as it was in previous
versions.. when I try to compile from command line I get an error
complaining about libraries not found.. I guess I have to write some
config file and place it somewhere so that gcc can find the paths for
the libraries.. but don't know how to write this config file or where to
place it..
does anyone has an idea??
regards,
juan antonio
|
|
From: Scott S. <age...@co...> - 2004-02-10 01:30:06
|
Sometimes you have to make sure that in autoexec.bat there is a SET PATH to the compiler. I am not sure about the config files though, as I myself wonder this sometimes. If you want a good command line compiler, try checking out DJGPP. Juan Antonio Navarro Perez wrote: > > Hello, > > I know this question is not really about dev-cpp but the compiler.. I > remember that on previous versions of dev-cpp the Mingw/GCC installed > with it allowed me to compile from a command line (dos window). > > However, last version of dev-cpp (including the updated compiler) > does not seem to allow this as transparent as it was in previous > versions.. when I try to compile from command line I get an error > complaining about libraries not found.. I guess I have to write some > config file and place it somewhere so that gcc can find the paths for > the libraries.. but don't know how to write this config file or where to > place it.. > > does anyone has an idea?? > > regards, > > juan antonio > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Juan A. N. P. <ma1...@ma...> - 2004-02-12 13:37:30
|
Thanks for the quick reply, however this is not the problem, the path is set correctly, gcc is found corractly when I try to compile from any directory, but it does complain about not finind libraries and includes.. another idea of how to tell gcc the include and lib paths?? thanks.. On Mon, 09 Feb 2004 20:29:48 -0500, Scott Simontis <age...@co...> wrote: > Sometimes you have to make sure that in autoexec.bat there is a SET PATH > to the compiler. I am not sure about the config files though, as I > myself wonder this sometimes. If you want a good command line compiler, > try checking out DJGPP. > > Juan Antonio Navarro Perez wrote: > >> >> Hello, >> >> I know this question is not really about dev-cpp but the compiler.. >> I >> remember that on previous versions of dev-cpp the Mingw/GCC installed >> with it allowed me to compile from a command line (dos window). >> >> However, last version of dev-cpp (including the updated compiler) >> does not seem to allow this as transparent as it was in previous >> versions.. when I try to compile from command line I get an error >> complaining about libraries not found.. I guess I have to write some >> config file and place it somewhere so that gcc can find the paths for >> the libraries.. but don't know how to write this config file or where >> to >> place it.. >> >> does anyone has an idea?? >> >> regards, >> >> juan antonio >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by EclipseCon 2004 >> Premiere Conference on Open Tools Development and Integration >> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >> http://www.eclipsecon.org/osdn >> _______________________________________________ >> Dev-cpp-users mailing list >> Dev...@li... >> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> > -- juan antonio |
|
From: Doug M. <dou...@al...> - 2004-02-12 17:28:31
|
This may not be helpful either but have you looked at the Tools->compiler options->directories menu item to see what the dev-c++ directories for header and library files are? It might help to add an explicit -I <path> command option for each header directory dev-c++ uses and a n explicit -L <path> command option for each library directory. Doug > Thanks for the quick reply, however this is not the problem, the path > is set correctly, gcc is found corractly when I try to compile from > any directory, but it does complain about not finind libraries and > includes.. > > another idea of how to tell gcc the include and lib paths?? > > thanks.. > > On Mon, 09 Feb 2004 20:29:48 -0500, Scott Simontis > <age...@co...> wrote: > >> Sometimes you have to make sure that in autoexec.bat there is a SET >> PATH to the compiler. I am not sure about the config files though, >> as I myself wonder this sometimes. If you want a good command line >> compiler, try checking out DJGPP. >> >> Juan Antonio Navarro Perez wrote: >> >>> >>> Hello, >>> >>> I know this question is not really about dev-cpp but the >>> compiler.. I remember that on previous versions of dev-cpp the >>> Mingw/GCC installed with it allowed me to compile from a command >>> line (dos window). >>> >>> However, last version of dev-cpp (including the updated compiler) >>> does not seem to allow this as transparent as it was in previous >>> versions.. when I try to compile from command line I get an >>> error complaining about libraries not found.. I guess I have to >>> write some config file and place it somewhere so that gcc can >>> find the paths for the libraries.. but don't know how to write >>> this config file or where to place it.. >>> >>> does anyone has an idea?? >>> >>> regards, >>> >>> juan antonio |
|
From: <or...@vp...> - 2004-02-12 18:52:23
|
Juan Antonio Navarro Perez wrote:
> I know this question is not really about dev-cpp but the compiler..=
I
> remember that on previous versions of dev-cpp the Mingw/GCC installed
> with it allowed me to compile from a command line (dos window).
>=20
> However, last version of dev-cpp (including the updated compiler)
> does not seem to allow this as transparent as it was in previous
> versions.. when I try to compile from command line I get an error
> complaining about libraries not found.. I guess I have to write some
> config file and place it somewhere so that gcc can find the paths for
> the libraries.. but don't know how to write this config file or where =
to
> place it..
>=20
> does anyone has an idea??
gcc must have the following layout to find it's own stuff automatically:
<gcc-install>/
/bin - gcc.exe, etc.
/include/ - stdio.h, etc.
/c++/ - NO files
/3.2.3 - (<- OR similar) iostream, etc.
/ddk - ...
/GL - gl.h, etc.
/readline - readline.h, etc.
/sys - time.h, unistd.h, etc.
/lib - libstc++.a, etc.
/mingw32
/bin
/lib
/ldscripts
The downmost part (from /mingw32) is possibly not necessary, but I'm not=20
sure.
--
Greetings,
Bal=E1zs
|