472,353 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Multiple inclusion of static libraries

Hello Everybody,

I'm using Microsoft Visual Studio .NET 2003 (with Vc7 compiler)

I have some 15 projects each of which generate a static library when i
build the solution in release mode.

The solution also contains a project which includes all the above
generated static libraries.I have set all the above projects as
dependent projects in the 'Project Dependencies' option.

So whenever i build this main project(which also generates a static
library) i get lots of warnings of multiple inlcusion of the above 15
static libraries.

I have specified all the names of the staic libraries in the
'Addidional Dependencies' option and specified their paths in the
'Additional Library Directories' option.

I think this is required and it worked fine in my system.

Then, as per Murphy's law this gave a lots of warnings at the client
side:-(

Then when i built the same workspace in 5 systems (2 of them gave me
those warnings).

I'm not able to understand is this related to some default setting in
Visual Studio .net 2003 which is there on my system and not on others
because of which i'm not getting any warnings.

After some trial and error i found that if i don't inlcude the names of
the static libraries in the 'Additional Dependencies' option but
specify their paths in the 'Additional Library Directories'
option........it works fine in all systems and hopefully it should work
on the client side too.

Could u plz tell me how to overcome this problem.

One more strange thing i observed is that in the corresponding 'Command
Line' option i see that the all the library paths are included by
/LIBPATH: option and at the end all the libraries also also getting
inlcuded without specifying them in the 'Additional Dependencies'
option.

Is it that when we build a project in release mode all the libraries of
dependent projects are inlcuded automatically in the build by just
specifying their path or what i feel that we should specify their names
also in the 'Additional Dependencies' option.

In the systems which are generating the warnings this is happening :
once the libraries are getting inlcluded because we have specified them
in the 'Additional Dependencies' option and second time they are
getting inlcluded automatically while building the main project
resulting in the warning.

How can i resolve this????????

Thanks in Advance
Rajesh

Oct 23 '05 #1
1 2419
"rajesh_krec" <ra***********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com
Hello Everybody,

I'm using Microsoft Visual Studio .NET 2003 (with Vc7 compiler)

I have some 15 projects each of which generate a static library when i
build the solution in release mode.

The solution also contains a project which includes all the above
generated static libraries.I have set all the above projects as
dependent projects in the 'Project Dependencies' option.

So whenever i build this main project(which also generates a static
library) i get lots of warnings of multiple inlcusion of the above 15
static libraries.


[snip]

microsoft.public.vc.ide_general

would seem like a good place to ask this question.

--
John Carson
Oct 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Fritz Foetzl | last post by:
I'm flummoxed. I'm a veteran C++ programmer from the Unix/Linux camp, trying to learn Visual C++. I'm trying to build a project in which I need to...
1
by: Bruno van Dooren | last post by:
Hi, i am using a third party static library (.lib) that wraps a class interface around an old C-style dll. in the static library they use the STL...
6
by: techBoy | last post by:
I am looking for a tool that can scan my soyrce code and check if a header file gets included more then once in a sequece of compiled code. Can...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to...
11
by: lars.uffmann | last post by:
Easily described problem: Using g++ version 3.3.5 under suse 9.3, bla.h: ----------- #ifndef myTEST #define myTEST ZFSInt test; #endif
6
by: Richard | last post by:
1. Are there any problems with having, for instance, POSIX's "open" function #defined more than once. In my case, these would be in different...
10
by: zfareed | last post by:
Similar problem to the previous post. I have created a project with about 7 files including 3 header files and 3 implementation files. I am getting...
1
by: RajinCodingForum | last post by:
I have some idea but i am puzzled. As i understand, file inclusion problems like x includes y and y in turn includes x etc. can be avoided by #ifdef...
9
by: ramsatishv | last post by:
Hi, If I include a ".h" file for multiple times, will it increase my program size?? Regards Ram.
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.