J
Jason Hurder
Hey folks,
I think this is a configuration issue. I have 3 projects running under
one solution, 1 is a Windows service, 1 is a administration module and
another a class library (dll) that is used by the service. Some files
are shared among the projects, like user settings. I am "linking" the
shared files to the projects by using the "Open link" option when adding
an existing item to a project. However when I compile, I get the age-old
"multiply defined reference" error a couple of hundred times. The reason
is because the service includes a link to the shared file, and the class
module includes a link to the shared file. The service has a reference
to the class library and because of this, the compiler finds the objects
multiply defined. In the C++ days, this was cured with #ifdef
FILE_NAME....#endif. Not that i like that answer, it worked. Does anyone
know how to get around this? Thank you much!
Jason
I think this is a configuration issue. I have 3 projects running under
one solution, 1 is a Windows service, 1 is a administration module and
another a class library (dll) that is used by the service. Some files
are shared among the projects, like user settings. I am "linking" the
shared files to the projects by using the "Open link" option when adding
an existing item to a project. However when I compile, I get the age-old
"multiply defined reference" error a couple of hundred times. The reason
is because the service includes a link to the shared file, and the class
module includes a link to the shared file. The service has a reference
to the class library and because of this, the compiler finds the objects
multiply defined. In the C++ days, this was cured with #ifdef
FILE_NAME....#endif. Not that i like that answer, it worked. Does anyone
know how to get around this? Thank you much!
Jason