Click here to Skip to main content
15,906,569 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: foreach - basic C++ question Pin
Maximilien29-Aug-22 8:23
Maximilien29-Aug-22 8:23 
AnswerRe: foreach - basic C++ question Pin
CPallini29-Aug-22 20:05
mveCPallini29-Aug-22 20:05 
GeneralMessage Closed Pin
30-Aug-22 3:11
Member 1496877130-Aug-22 3:11 
GeneralRe: foreach - basic C++ question Pin
CPallini30-Aug-22 3:16
mveCPallini30-Aug-22 3:16 
AnswerRe: foreach - basic C++ question Pin
Richard MacCutchan29-Aug-22 21:56
mveRichard MacCutchan29-Aug-22 21:56 
Questionlinker error lnk2005 Pin
Roberto64_Ge29-Aug-22 4:19
Roberto64_Ge29-Aug-22 4:19 
AnswerRe: linker error lnk2005 Pin
k505429-Aug-22 4:35
mvek505429-Aug-22 4:35 
GeneralRe: linker error lnk2005 Pin
Roberto64_Ge29-Aug-22 5:03
Roberto64_Ge29-Aug-22 5:03 
Thank you, your answer is clear. Now the point is that I am not used at all in c++ compiling/linking and I am not used to VS configuration of compiler and linker, so I ask if you could help. Correct me if I am wrong : (we are within VS2019)
1) a create a new cc++ emty project
2) Add main.cpp , header.cpp and header.h to the project.
3) Include header.h in main.cpp
Now from the VS2019 environment, how do I compile separately main.cpp and header.cpp? I guess I have to compile header.cpp before. Isn't it? But how do I do that?
And then, how do I compile main.cpp and how the VS2019 knows, while compiling main.cpp, where to get the method implementation i.e. the header.obj?
GeneralRe: linker error lnk2005 Pin
k505429-Aug-22 5:09
mvek505429-Aug-22 5:09 
GeneralRe: linker error lnk2005 Pin
Roberto64_Ge29-Aug-22 5:13
Roberto64_Ge29-Aug-22 5:13 
GeneralRe: linker error lnk2005 Pin
k505429-Aug-22 5:28
mvek505429-Aug-22 5:28 
GeneralRe: linker error lnk2005 Pin
Roberto64_Ge29-Aug-22 8:56
Roberto64_Ge29-Aug-22 8:56 
AnswerRe: linker error lnk2005 Pin
Richard MacCutchan29-Aug-22 4:45
mveRichard MacCutchan29-Aug-22 4:45 
GeneralRe: linker error lnk2005 Pin
Roberto64_Ge29-Aug-22 5:14
Roberto64_Ge29-Aug-22 5:14 
Questiontracking down linker errors Pin
Calin Negru27-Aug-22 3:50
Calin Negru27-Aug-22 3:50 
AnswerRe: tracking down linker errors Pin
Mircea Neacsu27-Aug-22 4:03
Mircea Neacsu27-Aug-22 4:03 
SuggestionRe: tracking down linker errors Pin
Richard MacCutchan27-Aug-22 6:44
mveRichard MacCutchan27-Aug-22 6:44 
General[solved]Re: tracking down linker errors Pin
Calin Negru27-Aug-22 8:01
Calin Negru27-Aug-22 8:01 
QuestionUsing nlohmann JSON to insert more data Pin
Kiran Satish26-Aug-22 7:03
Kiran Satish26-Aug-22 7:03 
AnswerRe: Using nlohmann JSON to insert more data Pin
Mircea Neacsu26-Aug-22 8:53
Mircea Neacsu26-Aug-22 8:53 
QuestionQuestion About CToolTipCtrl Pin
ForNow24-Aug-22 8:33
ForNow24-Aug-22 8:33 
AnswerRe: Question About CToolTipCtrl Pin
Victor Nijegorodov24-Aug-22 21:53
Victor Nijegorodov24-Aug-22 21:53 
GeneralRe: Question About CToolTipCtrl Pin
ForNow24-Aug-22 22:19
ForNow24-Aug-22 22:19 
GeneralRe: Question About CToolTipCtrl Pin
Victor Nijegorodov24-Aug-22 23:56
Victor Nijegorodov24-Aug-22 23:56 
GeneralRe: Question About CToolTipCtrl Pin
ForNow25-Aug-22 1:36
ForNow25-Aug-22 1: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.