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 Message-ID: <3F8A9163.8080005@noos.fr> Date: Mon, 13 Oct 2003 13:49:55 +0200 From: Vaillant Etienne User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030910 Debian/1.4-4.he-1 X-Accept-Language: fr-fr MIME-Version: 1.0 To: Joost Kraaijeveld CC: "Cygwin (E-mail)" Subject: Re: compile and dynamic linking in one commandline References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, >Hi all, > >Is it possible to compile and link a source file with a dll to an >executable in one step? > >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 > It is possible : g++ -I"../include" -o"../../Target/Main.exe" Main.cpp -lObject -L"../../Target/" Etienne -- 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/