Closed GoogleCodeExporter closed 9 years ago
Do you need static linking of staff libraries?
Original comment by loentar
on 27 Dec 2011 at 6:56
no - I need the .lib 'import' libraries (associated with the packaged dlls)
.lib files can be either
a. - static libraries
b. - or 'import' libraries, for dynamic linking - dll is required at runtime,
but .lib is required at compile time
I use dynamic linking so I need b) - without those .lib files, nobody can
actually build anything, even if the dlls and headers are included
thanks,
Chris
Original comment by cristian...@gmail.com
on 27 Dec 2011 at 7:07
in your vs2005 binary packages, you are including the .lib import libraries (in
the lib folder)
but I use the gcc 4.4 package, and that package does not have them
Original comment by cristian...@gmail.com
on 27 Dec 2011 at 7:11
Actualy this is true for MSVC only. If you use GCC you don't need .lib files to
import symbols from shared object (.dll or .so). It compiles and runs.
Just try it. Start bash.exe and enter:
$ staff_codegen -tcomponent_all -pwsdl
http://www.webservicex.net/stockquote.asmx?WSDL
modify client as in
http://code.google.com/p/staff/wiki/ExampleCreatingCppClientFromWsdl?wl=en#Imple
menting_client
$ make
$ make run
Original comment by loentar
on 27 Dec 2011 at 7:49
you are right, sorry for the false alarm
Original comment by cristian...@gmail.com
on 27 Dec 2011 at 8:03
Original comment by loentar
on 28 Dec 2011 at 10:28
Original issue reported on code.google.com by
cristian...@gmail.com
on 27 Dec 2011 at 6:14