Click here to Skip to main content
15,891,920 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan9-Sep-22 22:00
mveRichard MacCutchan9-Sep-22 22:00 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge10-Sep-22 0:34
Roberto64_Ge10-Sep-22 0:34 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan10-Sep-22 0:47
mveRichard MacCutchan10-Sep-22 0:47 
QuestionHow can do it in c++? Pin
Member 157580955-Sep-22 6:07
Member 157580955-Sep-22 6:07 
GeneralRe: How can do it in c++? Pin
Richard MacCutchan5-Sep-22 6:43
mveRichard MacCutchan5-Sep-22 6:43 
AnswerRe: How can do it in c++? Pin
Greg Utas5-Sep-22 6:44
professionalGreg Utas5-Sep-22 6:44 
QuestionRe: How can do it in c++? Pin
CPallini5-Sep-22 20:50
mveCPallini5-Sep-22 20:50 
QuestionMessage Closed Pin
4-Sep-22 5:28
Member 149687714-Sep-22 5:28 
AnswerRe: Combining QProcess, qterminal and bluetoothctl...in C++ code Pin
Mircea Neacsu4-Sep-22 6:05
Mircea Neacsu4-Sep-22 6:05 
GeneralMessage Closed Pin
4-Sep-22 6:38
Member 149687714-Sep-22 6:38 
GeneralRe: Combining QProcess, qterminal and bluetoothctl...in C++ code PinPopular
Gerry Schmitz4-Sep-22 8:21
mveGerry Schmitz4-Sep-22 8:21 
AnswerRe: Combining QProcess, qterminal and bluetoothctl...in C++ code Pin
Richard MacCutchan4-Sep-22 21:37
mveRichard MacCutchan4-Sep-22 21:37 
QuestionMessage Closed Pin
29-Aug-22 7:23
Member 1496877129-Aug-22 7:23 
AnswerRe: foreach - basic C++ question Pin
Victor Nijegorodov29-Aug-22 7:40
Victor Nijegorodov29-Aug-22 7:40 
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 
I am dealing with a school exercise in c++ within an Ubuntu virtual machine. I have a header.h with the class, a header.cpp with the method implementation, a main.cpp and i compile it (main.cpp includes header.cpp which includes header.h) with the following: g++ main.cpp -Wall -o main (from ubuntu terminal). Then I run it and that's ok.
I then tried to import the same exercise in visual studio 2019 creating at first an empty c++ project. After I tried with a CMake project. In both cases compiler/linker return error LNK2005 relevant to all the method implementation saying that they are already defined in main.cpp.obj.
I would attach the complete project in both versions (Ubuntu side and vstudio19 side) but I do not see how. Regards
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 
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 

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.