Jump to content

  • Log In with Google      Sign In   
  • Create Account


Using classes from different projects


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Ravnock   Members   -  Reputation: 286

Like
0Likes
Like

Posted 31 January 2013 - 06:32 AM

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?



Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9338

Like
2Likes
Like

Posted 31 January 2013 - 07:38 AM

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

#3 Ravnock   Members   -  Reputation: 286

Like
0Likes
Like

Posted 31 January 2013 - 09:55 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS