Sign in to follow this  

Using classes from different projects

This topic is 1812 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I am working in a huge application using Visual Studio 2008 (more than a thousand classes)

 

I have one solution with several projects, now I want to create a new project under the same solution, it's a simple cmd application that uses one class (classX) from another project (projectX)in the same solution.

 

Note ProjectX is a dll

 

First, I have created a new cmd application using the wizard

Then I have added some additional include directories in the project properties

I have written some code in the main function, that uses the others project class (classX)

I have compiled the code and I get some LNK2019 unresolved external symbol (these symbols are in classX)

 

What I have to do now? How I include the dll to my new project?

Share this post


Link to post
Share on other sites
Did you add the .lib file for the DLL to the additional inputs in the linker section of the project properties?

Share this post


Link to post
Share on other sites

Did you add the .lib file for the DLL to the additional inputs in the linker section of the project properties?

Yes I did it. Everything was OK but  there was some problem with the Build Configuration, I changed it to Debug and now it's working.

Share this post


Link to post
Share on other sites
Sign in to follow this