This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: compile and dynamic linking in one commandline
- From: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
- To: "Joost Kraaijeveld" <J dot Kraaijeveld at Askesis dot nl>
- Cc: "Cygwin (E-mail)" <cygwin at cygwin dot com>
- Date: Fri, 10 Oct 2003 11:23:43 +0200
- Subject: Re: compile and dynamic linking in one commandline
- Organization: Esse keine toten Tiere
- References: <A3D1526C98B7C1409A687E0943EAC410015762@obelix.askesis.nl>
- Reply-to: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
Joost schrieb:
> Hi all,
> Is it possible to compile and link a source file with a dll to an
> executable in one step?
Sure.
> At this moment I use 2 steps:
> g++ -c -I"../include" -o"../../Objects/Main.o" Main.cpp
> g++ -o"../../Target/Main.exe ../../Objects/Main.o
> ../../Target/libObject.dll
c++ -I"../include" -o"../../Target/Main" Main.cpp -L../../Target -lObject
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/