Click here to Skip to main content
15,898,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in SearchPath Pin
SiddharthAtw29-Jan-04 22:14
SiddharthAtw29-Jan-04 22:14 
QuestionHave an idea, what do you think? Pin
youngjedi23-Jan-04 14:11
youngjedi23-Jan-04 14:11 
AnswerRe: Have an idea, what do you think? Pin
l a u r e n23-Jan-04 14:27
l a u r e n23-Jan-04 14:27 
GeneralAccess - changing database password from an EXE Pin
Kayembi23-Jan-04 9:07
Kayembi23-Jan-04 9:07 
GeneralRe: Access - changing database password from an EXE Pin
David Crow23-Jan-04 9:44
David Crow23-Jan-04 9:44 
GeneralCListView Custom Drawing: drop target icon Pin
bitpusher23-Jan-04 7:49
bitpusher23-Jan-04 7:49 
GeneralProblem Vith ADO-FoxPro Pin
Srdjan Mladenovic23-Jan-04 7:40
Srdjan Mladenovic23-Jan-04 7:40 
Generalnewbie having error LNK2005 problem Pin
skletty23-Jan-04 7:23
skletty23-Jan-04 7:23 
Hi-

I've been working with vs.net for awhile, but I need to use VC6 for this
current project. I'm getting linker errors and I have searched and
searched, yet I can't find it anywhere.

Here is the deal;
StdAfx.h
#include "SM2Types.h" // my custom types


SM2Types.h
#include "XYDataArray.h" // this is a nice little template class container that I found on Code Project. I don't want to use MFC


XYDataArray.h is wrapped nicely with #ifndef / #define
XYDataArray.h has this line #include XYDataArray.inl - this is the
implementation file it appears, I've never seen one before

So, somehow I guess it's trying to link to the objects over and over, hence
I'm getting the error:
Linking...
StdAfx.obj : error LNK2005: "int nXYSwap" (?nXYSwap@@3HA) already defined in
CSM2FileTools.obj
STL_testing.obj : error LNK2005: "int nXYSwap" (?nXYSwap@@3HA) already
defined in CSM2FileTools.obj
Debug/STL_testing.exe : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.


This is very defeating... anyone have any ideas?? please?

-SK
GeneralRe: newbie having error LNK2005 problem Pin
David Crow23-Jan-04 9:49
David Crow23-Jan-04 9:49 
GeneralRe: newbie having error LNK2005 problem Pin
skletty23-Jan-04 10:06
skletty23-Jan-04 10:06 
GeneralRe: newbie having error LNK2005 problem Pin
David Crow23-Jan-04 10:17
David Crow23-Jan-04 10:17 
GeneralRe: newbie having error LNK2005 problem Pin
skletty23-Jan-04 10:20
skletty23-Jan-04 10:20 
GeneralRe: newbie having error LNK2005 problem Pin
Jörgen Sigvardsson24-Jan-04 6:12
Jörgen Sigvardsson24-Jan-04 6:12 
GeneralRe: newbie having error LNK2005 problem Pin
Michael Dunn23-Jan-04 12:46
sitebuilderMichael Dunn23-Jan-04 12:46 
GeneralDialog from CHTMLView Pin
Frank Deo23-Jan-04 6:50
Frank Deo23-Jan-04 6:50 
GeneralServer 2003 DDK, ZMODEM Pin
Shahin7723-Jan-04 6:41
Shahin7723-Jan-04 6:41 
GeneralRe: Server 2003 DDK, ZMODEM Pin
Alexander M.,24-Jan-04 7:49
Alexander M.,24-Jan-04 7:49 
GeneralRe: Server 2003 DDK, ZMODEM Pin
Shahin7724-Jan-04 8:30
Shahin7724-Jan-04 8:30 
GeneralMFC main thread return codes Pin
Dominik Reichl23-Jan-04 6:23
Dominik Reichl23-Jan-04 6:23 
GeneralRe: MFC main thread return codes Pin
Michael Dunn23-Jan-04 6:27
sitebuilderMichael Dunn23-Jan-04 6:27 
GeneralRe: MFC main thread return codes Pin
J. Eric Vaughan23-Jan-04 8:54
J. Eric Vaughan23-Jan-04 8:54 
GeneralRe: MFC main thread return codes Pin
Antti Keskinen23-Jan-04 22:49
Antti Keskinen23-Jan-04 22:49 
GeneralSQL and Windows Database Programming Pin
valikac23-Jan-04 6:11
valikac23-Jan-04 6:11 
GeneralRe: SQL and Windows Database Programming Pin
Michael P Butler23-Jan-04 7:05
Michael P Butler23-Jan-04 7:05 
GeneralRe: SQL and Windows Database Programming Pin
l a u r e n23-Jan-04 14:36
l a u r e n23-Jan-04 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.