Solved Error LNK2019 and LNK2001
-
@riken7
addQT += serialport
to your .pro file -
Now, I add QT += serialport, but errors LNK2019 and LNK 2001 go on happening
#------------------------------------------------- # # Project created by QtCreator 2016-12-27T10:52:48 # #------------------------------------------------- QT += core gui QT += serialport greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = serie TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui
thanks
-
Hi,
Did you re-run qmake or force a full re-build of your project ?
-
First, I did re-run the project and Now I do re-build my project.
These error go on happening, I use build with debug.
-
@riken7
to make sure:
You should rerun qmake. Means right click on your project in QtCreator and choose "Run qmake" to update the makefiles and thus the linker commands. -
This post is deleted! -
@raven-worx
Thanks, the project has compiled me perfectly but I have another problem when the program is executing, it crash.I am a noob with Qt and MSVC and I don't know solving the problem.
Upload the images for yo can show that happening.
[Problem Images](Thanks, the project has compiled me perfectly)
I crew that It's a windows problem.
-
@riken7 said in Error LNK2019 and LNK2001:
program is executing, it crash
Did you check with a debugger, often this behaviour is due to errors in the program itself
-
Hi
make sure that [index] matches the len
for all
int primero[96];
int segundo[92];
int tercero[10];
int cuarto[43];as this looks wrong
for(int i=0;i<=62;i++){
cuarto[i]=3; <<< is cuarto not ONLY 43? ( this can crash you) -
@mrjj said in Error LNK2019 and LNK2001:
Hi
make sure that [index] matches the len
for all
int primero[96];
int segundo[92];
int tercero[10];
int cuarto[43];as this looks wrong
for(int i=0;i<=62;i++){
cuarto[i]=3; <<< is cuarto not ONLY 43? ( this can crash you)thanks, it's the problem!, i didn't look.