QUSIR / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

gcc binary packages do not include .lib (.a) library files #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
.dlls are present, headers are present, .libs are missing

both gcc 4.4.0 and gcc 4.5.2 binary packages are affected

thanks

Original issue reported on code.google.com by cristian...@gmail.com on 27 Dec 2011 at 6:14

GoogleCodeExporter commented 9 years ago
Do you need static linking of staff libraries?

Original comment by loentar on 27 Dec 2011 at 6:56

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
you are right, sorry for the false alarm

Original comment by cristian...@gmail.com on 27 Dec 2011 at 8:03

GoogleCodeExporter commented 9 years ago

Original comment by loentar on 28 Dec 2011 at 10:28