473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Linked .cs files and defined in multiple places warning

Joe
I have a utilities class which I include in a library and the exe. The exe
also includes the library therefore generating the warning about the same
classes being defined in multiple places.

Is there any way to prevent this? I really hate having warnings.

Thanks.
Nov 17 '05 #1
3 1718
Hmmmm...I'm not sure but are u declaring your class as internal ? or public
?
Try as internal.

--
Daniel Groh
CTF Technologies do Brasil LTDA
Analista Programador
Fone: 11 3837-4203
Email: dg***@ctf.com.br
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> escreveu na mensagem
news:ed**************@TK2MSFTNGP09.phx.gbl...
I have a utilities class which I include in a library and the exe. The exe
also includes the library therefore generating the warning about the same
classes being defined in multiple places.

Is there any way to prevent this? I really hate having warnings.

Thanks.

Nov 17 '05 #2
Joe
Thanks. I had them declared as public. Changing it to internal got rid of my
warnings.

"Daniel Groh" <ne*********@gmail.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Hmmmm...I'm not sure but are u declaring your class as internal ? or public ?
Try as internal.

--
Daniel Groh
CTF Technologies do Brasil LTDA
Analista Programador
Fone: 11 3837-4203
Email: dg***@ctf.com.br
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> escreveu na mensagem
news:ed**************@TK2MSFTNGP09.phx.gbl...
I have a utilities class which I include in a library and the exe. The exe also includes the library therefore generating the warning about the same classes being defined in multiple places.

Is there any way to prevent this? I really hate having warnings.

Thanks.


Nov 17 '05 #3
anytime ;)

--
Daniel Groh
CTF Technologies do Brasil LTDA
Analista Programador
Fone: 11 3837-4203
Email: dg***@ctf.com.br
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> escreveu na mensagem
news:Of*************@TK2MSFTNGP10.phx.gbl...
Thanks. I had them declared as public. Changing it to internal got rid of
my
warnings.

"Daniel Groh" <ne*********@gmail.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Hmmmm...I'm not sure but are u declaring your class as internal ? or

public
?
Try as internal.

--
Daniel Groh
CTF Technologies do Brasil LTDA
Analista Programador
Fone: 11 3837-4203
Email: dg***@ctf.com.br
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> escreveu na mensagem
news:ed**************@TK2MSFTNGP09.phx.gbl...
>I have a utilities class which I include in a library and the exe. The exe > also includes the library therefore generating the warning about the same > classes being defined in multiple places.
>
> Is there any way to prevent this? I really hate having warnings.
>
> Thanks.
>
>



Nov 17 '05 #4

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

Similar topics

11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
7
by: Robert Bralic | last post by:
Dear, I wreated a small program that make a linked list of factorials of numbers, I don't have expirience with templates so I will bee thankfull if anybody can make the same with...
8
by: Joe | last post by:
I have a .cs file which is linked to several other projects. All my classes in this file are defined as internal. I would like to have an enum defined as well in the namespace but I get an error...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
5
by: Little | last post by:
I have this program and I need to work on the test portion, which tests if a Val is in the list. It returns false no matter what could you look at the part and see what might need to be done to fix...
3
by: john_owens | last post by:
I have a templated function called splitAndSegment (templated on the datatype). It's declared in a header file. I then include that header file in two separate cpp files and link them separately....
6
by: tgnelson85 | last post by:
Hello, C question here (running on Linux, though there should be no platform specific code). After reading through a few examples, and following one in a book, for linked lists i thought i would...
6
by: The Architect | last post by:
Hi, If I have the same symbol in the .data section of 2 obj files, LD gives a multiple declaration error on linking? Would like to know the reason for this (diab only issues a warning) Also...
7
by: QiongZ | last post by:
Hi, I just recently started studying C++ and basically copied an example in the textbook into VS2008, but it doesn't compile. I tried to modify the code by eliminating all the templates then it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.