qt qxorm error to use .c files
-
I am creating an app with qt and qxorm everything works ok but when adding a .c file it stops recognizing libraries that were ok before
@jchaviano This is not enough information.
How do you add this c file?
What errors do you get then? -
@jchaviano This is not enough information.
How do you add this c file?
What errors do you get then?@jsulm
The problem is simple, everything works ok, but as soon as I add a .c to the project, it stops recognizing the libraries that worked ok before including the .c. the solution is what I think is difficult hehe. everything looks like a qxorm problem with c -
@jsulm
The problem is simple, everything works ok, but as soon as I add a .c to the project, it stops recognizing the libraries that worked ok before including the .c. the solution is what I think is difficult hehe. everything looks like a qxorm problem with c@jchaviano hi,
As @jsulm already requested, how are you adding that file ?
What exact error are you getting ? -
@jchaviano hi,
As @jsulm already requested, how are you adding that file ?
What exact error are you getting ?@SGaist

the project compiles but just by adding a .c file the libraries are lost
the project works correctly, say that this is a simple implementation to show the error.

In this last photo you can see qxorm working correctly qml ok the static project with its dependencies all ok. I mean, just adding a .c file damages the app and stops recognizing the libraries that worked before
I have to integrate another project that is practically developed in c and I can't redeploy the project. I've already wasted a lot of time with qxorm for this reason. I must assume that it's incompatible with c or is it something I have to do with qt
-
@SGaist

the project compiles but just by adding a .c file the libraries are lost
the project works correctly, say that this is a simple implementation to show the error.

In this last photo you can see qxorm working correctly qml ok the static project with its dependencies all ok. I mean, just adding a .c file damages the app and stops recognizing the libraries that worked before
I have to integrate another project that is practically developed in c and I can't redeploy the project. I've already wasted a lot of time with qxorm for this reason. I must assume that it's incompatible with c or is it something I have to do with qt
@jchaviano Please show your pro file
-
@jchaviano Please show your pro file
QT += quick
CONFIG += c++11
#qxorm ok init
include(../QxOrm/QxOrm.pri)
TEMPLATE = app
DEFINES += _BUILDING_QX_BLOG
INCLUDEPATH += ../QxOrm/include/
DESTDIR = $$PWD/_bin/
LIBS += -L"$$PWD/libQxormx32"CONFIG(debug, debug|release) {
TARGET = TecnoUnlockerDb
LIBS += -l"QxOrmd"
} else {
TARGET = TecnoUnlockerDb
LIBS += -l"QxOrm"
} # CONFIG(debug, debug|release)!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
PRECOMPILED_HEADER = ./include/precompiled.h
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
#qxorm ok endDEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES +=
classproyects/conectmongodb.cpp
main.cppRESOURCES += qml.qrc
Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += targetHEADERS +=
classproyects/conectmongodb.h
include/author.h
include/export.h -
QT += quick
CONFIG += c++11
#qxorm ok init
include(../QxOrm/QxOrm.pri)
TEMPLATE = app
DEFINES += _BUILDING_QX_BLOG
INCLUDEPATH += ../QxOrm/include/
DESTDIR = $$PWD/_bin/
LIBS += -L"$$PWD/libQxormx32"CONFIG(debug, debug|release) {
TARGET = TecnoUnlockerDb
LIBS += -l"QxOrmd"
} else {
TARGET = TecnoUnlockerDb
LIBS += -l"QxOrm"
} # CONFIG(debug, debug|release)!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
PRECOMPILED_HEADER = ./include/precompiled.h
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
#qxorm ok endDEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES +=
classproyects/conectmongodb.cpp
main.cppRESOURCES += qml.qrc
Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += targetHEADERS +=
classproyects/conectmongodb.h
include/author.h
include/export.hPlease use coding tags. Without them, it's unreadable.
That said, there's no mention of any
.cfile in what you posted. -
Please use coding tags. Without them, it's unreadable.
That said, there's no mention of any
.cfile in what you posted.QT += quick
CONFIG += c++11
#qxorm ok init
include(../QxOrm/QxOrm.pri)
TEMPLATE = app
DEFINES += _BUILDING_QX_BLOG
INCLUDEPATH += ../QxOrm/include/
DESTDIR = $$PWD/_bin/
LIBS += -L"$$PWD/libQxormx32"CONFIG(debug, debug|release) {
TARGET = TecnoUnlockerDb
LIBS += -l"QxOrmd"
} else {
TARGET = TecnoUnlockerDb
LIBS += -l"QxOrm"
} # CONFIG(debug, debug|release)!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
PRECOMPILED_HEADER = ./include/precompiled.h
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
#qxorm ok endDEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES +=
classproyects/conectmongodb.cpp
main.cpp
mi_c_file.cRESOURCES += qml.qrc
Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += targetHEADERS +=
classproyects/conectmongodb.h
include/author.h
include/export.h
