I am using this tutorial https://www.youtube.com/watch?v=a_W4zt5sR1M&ab_channel=BoostMyTool to make simple C++ app that connects to a database. I am using Microsoft visual studio 2019, and the guy uses mvs2022, so it is not working for me, there are 6 errors, all of them are LNK2028: unresolved external symbol. Is there anything that i should do differently for my version of visual studio than it says in video?
Edit: i downloaded x86 lib, now it says "cant open mysqlcppconn-static.lib"
Usually VS2019 doesn't cause this problem, and I didn't get any errors after following the steps in the video, I suggest you watch this tutorial carefully.
cant open mysqlcppconn-static.lib
This error is caused by not loading the library directory correctly, I suggest you refer to the following steps.
1.C/C++->general->additional inlcude directories->mysql8.0.31-64\include\jdbc
2.C/C++->Preprocessor->Preprocessor definitions->STATIC_CONCPP;
3.Linker->general->additional library directories->mysql8.0.31-64\lib64\vs14
4.Linker->Input->mysqlcppconn-static.lib
PS: The last arrow in each step is the content you need to enter.
Related
[enter image description here][1]I'm developing a c++ code on eclipse and i need cplex.
#include "ilcplex/ilocplex.h".
I have made this passages:
- project\properties\C/C++ built\Settings\GCC C++ compiler\Includes:
"C:\Program Files\IBM\ILOG\CPLEX_Studio126\cplex\include"
-project\properties\C/C++ built\Settings\MinGW C++ Linker\libraries:
"C:\Program Files\IBM\ILOG\CPLEX_Studio126\cplex\include\ilcplex"
and the library seems to be ok, since if i use f3 it works.
Despite this, it continues to give me this message:
fatal error: ilcplex/ilocplex.h no such file or directory.
I have tried to follow the instructions of the other similar posts, but nothing changed.
Can you please help me?
Even if you fix the error you are getting now, using CPLEX with gcc on Windows is not something that is supported, and it's likely you'll just run into another error. If you look at the detailed system requirements for CPLEX on Windows, you will see that Visual Studio 2015 or Visual Studio 2017 is required. You should take a look at the c_cpp.html file that gets installed with CPLEX for instructions on how to set up the Visual Studio environment when working with C/C++ projects.
I tried to use Eigen library within the Arduino IDE fist. Then I got the error:
fatal error: eigenfolder/Eigen/Dense: No such file or directory
Then I tried to use EigenArduino library. Then I got an error
fatal error cstddef No such file or directory #include cstddef
So I realized that there is probably a lot of standard library that is not linked/implemented into this Arduino IDE. So before getting everythin I decided to move into ATMEL STUDIO 7. My hope was that Atmel Studio gets everything automatically.
But in order to use my previous Arduino Sketches, I also installed Visual Micro that is a Plug-In for Atmel Studio so that you can use everything like in the Arduino IDE.
==> So the problem starts all over again. Same errors in Atmel Studio 7. It seems like I am just using the Atmel Studio 7 Editor now, but the same compiler settings, libraries etc. (Since I am a newbie :-) this is just a guess ).
How can I link all this together? Can somebody please help?
How did you add the library ?
Did you use libraries manager in Arduino IDE ?
Or you downloaded the library separately ?
I found out that using libraries manager solve most compatibility issues.
I'm having some really hard times in getting to run a first simple project with FLTK. At the moment I have followed the steps on this page
But when I try to compile my code I still get the error :
LNK 1104 impossible to open the file 'fltkjpegd.lib'.
Any idea on how to solve this issue ?
Add fltk libraries dependencies to your Visual Studio project as is described here
I've searched at a lot of places, asked a lot of people, but didn't found an answer to fix this issue..
I've just created a game in C++ with SFML in Visual Studio Community 2015. My project settings are set like they have to (followed this guide).
When I runu the game on my pc, it works totally fine. If it runs on a pc without Visual Studio 2015, it will crash and returns the following error:
The application was unable to start correctly (0xc00007b)
I've also downloaded Dependency Walker, to check the .exe on errors and it results a couuple of errors. They can be seen in this screenshot. Sorry for the dutch error after Error opening file. It says: The system can't find the given file.
These are the dll's I'm icluding in the root folder of my game:
I'm hoping you guys can help me out.. Thanks in advance!
This error code rings a bell - have you installed the visual c++ redistributable package on the PCs where VS is not installed? You should be able to find the package in your VS folder (program files).
i able to setup wxWidgets 2.9.4 correctly on windows 7 x64. sample projects are working fine. but when a try to make a new project is show error
fatal error LNK1104: cannot open file 'wxmsw29ud_core.lib'
i setup project according to information provide at
http://www.codeproject.com/Articles/11515/Introduction-to-wxWidgets
http://wiki.wxwidgets.org/Microsoft_Visual_C%2B%2B_Guide#Changing_setup_settings
i also try to put Depenedencies form running sample projects. but again it show the same error
and if i put my code in one of running project then i works fine.
i also try to run vs with admin.
You need to add the location of the library to the list in the linker section of the project settings
Something like this:
For wxWidgets 3.0 above
If you're using wxWidgets version later than 2.9, most likely the solution is to update the library name wxmsw28ud_core.lib into wxmswXYud_core.lib, where X is the major number and Y is the minor number of the wxWidgets version you're using.
For example, as of this writing I'm using wxWidgets 3.1. So I simply specify wxmsw31ud_core.lib instead of the faulty wxmsw29ud_core.lib as instructed by outdated guides for Visual Studio such as WxWiki. The same is done for wxbase28ud.lib.