compile and dynamic linking in one commandline

Gerrit P. Haase freeweb@nyckelpiga.de
Fri Oct 10 09:45:00 GMT 2003


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/



More information about the Cygwin mailing list