|
-
August 7th, 2010, 10:09 AM
#1
Dependant project
Hi all, these few problems keeps bugging me, I could play around with then but really wish to know appropriate ways to deal with it.
In my solution I have project A and project B. Now A is an application proj and this is the main project, whilse B is a dll one. B uses one of A' class.
1. If A includes an additional folder says "lib\" then B hence need to include that folder but different relative path (e.g. "..\projA\lib\"). If A includes many folders then B also needs to include these folders but of different relative paths, this is very troublesome.
2. I see besides the .exe file, proj A also produces an .lib file. However B is a dll project so it cannot depend on A.
Is there anyway I can let B uses a class in A easily without including all the folders A includes and without changing A to a dll project (as A is supposed to be an application project).
Really appreciate if anyone give me a clue =), thanks.
-
August 7th, 2010, 11:40 AM
#2
Re: Dependant project
 Originally Posted by namBD
In my solution I have project A and project B. Now A is an application proj and this is the main project, whilse B is a dll one. B uses one of A' class.
That's not going to work. A dll depend on other dll's and an application can depend on dll, not the other way around.
So if both A and B need to use a class, you need to move it into B or a separate library that both A and B will depend on.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|