Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have extracted dxflib into a folder. How do I connect it to my project in VC++6? Please help.
V.K.Tamhane
Posted

Add the folder address to your "LIB" variable or properties, and add the name "dxflib" to your link properties.
 
Share this answer
 
Comments
[no name] 15-Dec-10 9:39am    
I think the name "dxflib.lib" should be added to link properties (if lib file was called in that way).
Hi Richard
Thanks for your reply but I failed to link dxflib. Extracted folder is in my project folder. I took following steps,
Projects->Settings. In the tab C/C++, category selected was 'Preprocessor'. In the 'Additional include directories' I entered dxflib-2.2.0.0-1src (folder name).
In the 'Link' tab, category selected was 'Input' and in the field 'Additional Library path' I entered dxflib. Second time I entered dxflib.lib. Failed both times to link.
Incidently, a folder 'lib' in the folder dxflib-2.2.0.0-1src is empty. Is there something wrong?
Regards-V.K.Tamhane
 
Share this answer
 
'Additional include directories' isn't the directory where your libraries come from. There's two ways you can do what you want:

If you wish to add dxflib.lib to your current project alone, you can add it with a path on the link tab. E.g. 'dxflib-2.2.0.0-1src/dxflib.lib'.

If you plan to use dxflib.lib in several other projects as well, it might be a good idea to tell the compiler to always look into the libary's folder when searching for lib files.
To do this, go to Tools>Options, click on the Directories tab, select 'Show directories for: Library files' and select the dxflib-2.2.0.0-1src folder.
Now you can link your dxflib.lib as mentioned above, but without need to add the path.
 
Share this answer
 
Comments
Vilas Tamhane 19-Dec-10 9:13am    
Jones, Many thanks for your elaborate answer. I will try the method you have suggested. Regards V.K.Tamhane

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900