Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 10 Oct 2003 11:23:43 +0200 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <40774689114.20031010112343@familiehaase.de> To: "Joost Kraaijeveld" CC: "Cygwin (E-mail)" Subject: Re: compile and dynamic linking in one commandline In-Reply-To: References: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit 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/