Click here to Skip to main content
15,798,592 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Ben kubi20-Oct-22 12:32
Ben kubi20-Oct-22 12:32 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Richard MacCutchan20-Oct-22 21:38
mveRichard MacCutchan20-Oct-22 21:38 
AnswerRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Mircea Neacsu20-Oct-22 15:04
Mircea Neacsu20-Oct-22 15:04 
AnswerRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Richard MacCutchan20-Oct-22 22:01
mveRichard MacCutchan20-Oct-22 22:01 
QuestionCannot initialize iterator with vector type defined in class Pin
ForNow12-Oct-22 17:40
ForNow12-Oct-22 17:40 
AnswerRe: Cannot initialize iterator with vector type defined in class Pin
CPallini12-Oct-22 22:42
mveCPallini12-Oct-22 22:42 
QuestionCreate a Makefile from this mess Pin
pkfox8-Oct-22 3:56
professionalpkfox8-Oct-22 3:56 
AnswerRe: Create a Makefile from this mess Pin
Richard MacCutchan8-Oct-22 6:34
mveRichard MacCutchan8-Oct-22 6:34 
You can use backslashes in the Makefile just the same. If you set all the includes into a macro it simplifies things a bit. Something like:
g++ Source/*.cpp -o callapi \
INCS = -I /home/pjk/vcpkg/packages/cpr_x64-linux/include/cpr \
       -I /home/pjk/C++/CallCommandsAPI/Headers/ \
       -I /home/pjk/vcpkg/packages/rapidjson_x64-linux/include/ \
       -I /home/pjk/vcpkg/packages/cpr_x64-linux/include/

LIBS = -L /home/pjk/vcpkg/packages/cpr_x64-linux/lib/ \
       -lcpr -lcurl -lpthread -lssl -lcrypto 

SOURCES = <-- add the source names here - callapi.cpp etc.

TARGET: callapi

callapi: $(SOURCES)
    g++ Source/*.cpp -o $@ $(INCS) $(LIBS)

You may need to add the Source directory name in front of all the dependency names in the SOURCES macro, in which case the last line could be changed to
g++ $(SOURCES) -o $@ $(INCS) $(LIBS)

This is untested but broadly follows a Makefile I use in Ubuntu.
GeneralRe: Create a Makefile from this mess Pin
pkfox8-Oct-22 6:42
professionalpkfox8-Oct-22 6:42 
GeneralRe: Create a Makefile from this mess Pin
Richard MacCutchan8-Oct-22 6:57
mveRichard MacCutchan8-Oct-22 6:57 
GeneralRe: Create a Makefile from this mess Pin
pkfox8-Oct-22 7:17
professionalpkfox8-Oct-22 7:17 
AnswerRe: Create a Makefile from this mess Pin
k505413-Oct-22 6:53
mvek505413-Oct-22 6:53 
GeneralRe: Create a Makefile from this mess Pin
pkfox13-Oct-22 22:40
professionalpkfox13-Oct-22 22:40 
GeneralRe: Create a Makefile from this mess Pin
k505414-Oct-22 5:13
mvek505414-Oct-22 5:13 
QuestionIs this array of 2D vectors? Pin
Sk. Azraf Sami7-Oct-22 21:32
Sk. Azraf Sami7-Oct-22 21:32 
AnswerRe: Is this array of 2D vectors? Pin
Richard MacCutchan7-Oct-22 22:35
mveRichard MacCutchan7-Oct-22 22:35 
QuestionStyle question Pin
Mircea Neacsu3-Oct-22 16:33
Mircea Neacsu3-Oct-22 16:33 
AnswerRe: Style question Pin
Graham Breach3-Oct-22 22:23
Graham Breach3-Oct-22 22:23 
GeneralRe: Style question Pin
Mircea Neacsu4-Oct-22 3:27
Mircea Neacsu4-Oct-22 3:27 
AnswerRe: Style question Pin
CPallini4-Oct-22 0:47
mveCPallini4-Oct-22 0:47 
GeneralRe: Style question Pin
Mircea Neacsu4-Oct-22 3:28
Mircea Neacsu4-Oct-22 3:28 
GeneralRe: Style question Pin
CPallini7-Oct-22 2:35
mveCPallini7-Oct-22 2:35 
AnswerRe: Style question Pin
BernardIE53177-Oct-22 4:14
BernardIE53177-Oct-22 4:14 
GeneralRe: Style question Pin
Mircea Neacsu7-Oct-22 4:18
Mircea Neacsu7-Oct-22 4:18 
GeneralRe: Style question Pin
BernardIE53177-Oct-22 4:27
BernardIE53177-Oct-22 4:27 

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.