delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/13/14:34:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <vaillant DOT etienne AT noos DOT fr>
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 <J DOT Kraaijeveld AT Askesis DOT nl>
CC: "Cygwin (E-mail)" <cygwin AT cygwin DOT com>
Subject: Re: compile and dynamic linking in one commandline
References: <A3D1526C98B7C1409A687E0943EAC410015762 AT obelix DOT askesis DOT nl>
In-Reply-To: <A3D1526C98B7C1409A687E0943EAC410015762@obelix.askesis.nl>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019