ibondiez / ticpp

Automatically exported from code.google.com/p/ticpp
0 stars 0 forks source link

the VC2005 project does not create stub lib for the DLL build (--shared) #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. premake --target vs2005 --unicode --shared
2. build using vs2005
3. DLL are created but no stub lib files 

What is the expected output? What do you see instead?
stub .lib files must exists

What version of the product are you using? On what operating system?
-

Please provide any additional information below.

Original issue reported on code.google.com by sorin.sb...@gmail.com on 20 Jan 2008 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by rjmy...@gmail.com on 21 Jan 2008 at 1:07

GoogleCodeExporter commented 9 years ago
The import library is not created because TinyXM doesn't export any of the 
symbols.
If you use Gcc it will auto-export all the function for you to use in your 
project
but you need to use Gcc and not Visual Studio. Sorry, this is not a desision we 
made,
it is one from the main TinyXML people. I suggest bring it up with them and see 
what
they have to say.

Original comment by rpusz...@gmail.com on 21 Jan 2008 at 6:17

GoogleCodeExporter commented 9 years ago
That makes ticpp and TinyXML++ not really cross-platform, does it? Maybe you 
should
remove this insinuation on the web-site or clearly state that you cannot use it 
as a
shared library with msvc. This would have saved me some time and frustration. 

Original comment by andrejva...@gmail.com on 26 Jun 2008 at 2:39

GoogleCodeExporter commented 9 years ago
Well it is cross platform. Code doesn't need to be usable as a dll to be 
considered
cross platform. Sorry. Compile the files in with your main application or as a 
static
library, then it will work for you. TinyXML was written to be included in your
application, not as a dll. We didn't make this desision the TinyXML developers 
have.
But I really don't see any reason this restriction should stop you from using 
it.

I would be glad to make the Premake script give an error if you try to generate 
build
files with VC and the --shared option. Would this be helpful?

Original comment by rpusz...@gmail.com on 26 Jun 2008 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by rjmy...@gmail.com on 8 Jul 2008 at 12:07