techoe / gflags

Automatically exported from code.google.com/p/gflags
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Problem linking under visual studio 10 C++ express, windows 7 #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile the program under windows with visual studio 10
2.
3.

What is the expected output? What do you see instead?
It should compile. Instead it fails to link with the following message: (in 
french; sorry)

tmp2.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) 
int fLI::FLAGS_test" (__imp_?FLAGS_test@fLI@@3HA) référencé dans la fonction 
_main
tmp.exe : fatal error LNK1120: 1 externes non résolus

What version of the product are you using? On what operating system?
Visual studio 10 C++ express on windows 7 23 bit

Please provide any additional information below.

Original issue reported on code.google.com by laurent....@gmail.com on 7 Apr 2011 at 7:23

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like you're linking in a static version of libgflags?  In that case, 
you need to specify some macros on the commandline; see README_windows.txt.

Original comment by csilv...@gmail.com on 9 Apr 2011 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by csilv...@gmail.com on 30 Jul 2011 at 2:48