When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
78 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
do you know how to add libraries to a C++ console application?
like, boost for example
No Idk, sorry
do you know how to split your code in headers, cpp files and how to include the headers in main.cpp?
Yes I think. I use this code: #include ‘header.h‘
have you done this before?
Dev C++ gave me a error like: not found or something like that
I saw a tutorial how a guy explain me how to add MySQL library’s to Dev C++ and I try this with these two folder: libson and libmongoc
And than I include this main header
But then gave me a error
where
what error
Can’t found the header
where is the tutorial
Wait pls
Little tutorial to link MySQL 8.0.26 to Dev C++ 5.11
This was the table:
CREATE TABLE student(
College_ID NUMERIC(5,0) NOT NULL PRIMARY KEY,
Name VARCHAR(21),
BirthDate DATE,
Grade NUMERIC(4,2)
);
Music fromm here:
https://youtu.be/ibIrFhrZrpg
I do something like this
With this 2 folder
did you put the path to the lib folder here?
and the path to the include folder here?
and this include path also?
@main quail
did you put the linker argument here?
Oh no
What kind of name is this linker ?
Like this main header: mongoc.h and libson.h ?
did you copy this dll file into the porject's local folder?
this is just a string, I won't explain now, just do it
Yes I do
did you add the linker parameter
from here #1118599779421786122 message
...
no becouse i dont ´know how to do that
in the video tutorial follow the steps to reach that window in the project settings
so why are you following the wrong tutorial then
this is for mySQL
becouse on youtube or in forms dont exist other tutorials
mongodb and mysql have nothing in common
you can't use this video
What do we do now ?
give me a moment
of course
where did you download this folder from
1 sec
@fading halo its ok if i go for like 20 mins with my Dog ?
yes
@main quail
can you explain how exactly you selected MongoDB? why not MySQL since it's easier to set up?
adding mongoDB requires using cmake and manually building a few dependencies which you will not understand
Because MongoDB is clearer for larger data sets and I find the source code easier. But can also try MySQL
Oh I don’t know this
right. so use mysql
go download the folder with its headers and libraries
and follow the video tutorial
Ok Bro, thx for your support 👍🏽
we are not done yet, you need to show that main.cpp compiles and you can run CREATE_TABLE, or something
oh haha
Should I then also install MySQL on my external server or locally?
try locally
i got some other connector
this here
https://www.youtube.com/watch?v=a_W4zt5sR1M&t=234s
i got the same folder like this guy
How to build C/C++ programs using the MySQL connector/c++ and Visual Studio 2022 on Windows. How to connect C/C++ applications to MySQL database.
Source code in the first comment or at this link: https://docs.microsoft.com/azure/mysql/connect-cpp
@main quail
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
@main quail so do you solved it yet?
I am facing some issues to implement that mongocxx to my machine

No, sorry, I let the project go...
i will let you know when i solve