<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[qt qxorm error to use .c files]]></title><description><![CDATA[<p dir="auto">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</p>
]]></description><link>https://forum.qt.io/topic/145374/qt-qxorm-error-to-use-c-files</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 07:29:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145374.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 May 2023 20:14:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qt qxorm error to use .c files on Thu, 01 Jun 2023 18:34:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">QT += quick</p>
<p dir="auto">CONFIG += c++11</p>
<p dir="auto">#qxorm ok init<br />
include(../QxOrm/QxOrm.pri)<br />
TEMPLATE = app<br />
DEFINES += _BUILDING_QX_BLOG<br />
INCLUDEPATH += ../QxOrm/include/<br />
DESTDIR = $$PWD/_bin/<br />
LIBS += -L"$$PWD/libQxormx32"</p>
<p dir="auto">CONFIG(debug, debug|release) {<br />
TARGET = TecnoUnlockerDb<br />
LIBS += -l"QxOrmd"<br />
} else {<br />
TARGET = TecnoUnlockerDb<br />
LIBS += -l"QxOrm"<br />
} # CONFIG(debug, debug|release)</p>
<p dir="auto">!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {<br />
PRECOMPILED_HEADER = ./include/precompiled.h<br />
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)<br />
#qxorm ok end</p>
<p dir="auto">DEFINES += QT_DEPRECATED_WARNINGS</p>
<p dir="auto">#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0</p>
<p dir="auto">SOURCES += <br />
classproyects/conectmongodb.cpp <br />
main.cpp <br />
mi_c_file.c</p>
<p dir="auto">RESOURCES += qml.qrc</p>
<h1>Additional import path used to resolve QML modules in Qt Creator's code model</h1>
<p dir="auto">QML_IMPORT_PATH =</p>
<h1>Additional import path used to resolve QML modules just for Qt Quick Designer</h1>
<p dir="auto">QML_DESIGNER_IMPORT_PATH =</p>
<h1>Default rules for deployment.</h1>
<p dir="auto">qnx: target.path = /tmp/$${TARGET}/bin<br />
else: unix:!android: target.path = /opt/$${TARGET}/bin<br />
!isEmpty(target.path): INSTALLS += target</p>
<p dir="auto">HEADERS += <br />
classproyects/conectmongodb.h <br />
include/author.h <br />
include/export.h</p>
]]></description><link>https://forum.qt.io/post/760248</link><guid isPermaLink="true">https://forum.qt.io/post/760248</guid><dc:creator><![CDATA[jchaviano]]></dc:creator><pubDate>Thu, 01 Jun 2023 18:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Thu, 01 Jun 2023 18:15:39 GMT]]></title><description><![CDATA[<p dir="auto">Please use coding tags. Without them, it's unreadable.</p>
<p dir="auto">That said, there's no mention of any <code>.c</code> file in what you posted.</p>
]]></description><link>https://forum.qt.io/post/760245</link><guid isPermaLink="true">https://forum.qt.io/post/760245</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 01 Jun 2023 18:15:39 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Thu, 01 Jun 2023 16:47:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> <img src="https://ddgobkiprc33d.cloudfront.net/99b64043-5604-40f1-a52c-48343ad7aed7.png" alt="qtimagenes4.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">QT += quick</p>
<p dir="auto">CONFIG += c++11</p>
<p dir="auto">#qxorm ok init<br />
include(../QxOrm/QxOrm.pri)<br />
TEMPLATE = app<br />
DEFINES += _BUILDING_QX_BLOG<br />
INCLUDEPATH += ../QxOrm/include/<br />
DESTDIR = $$PWD/_bin/<br />
LIBS += -L"$$PWD/libQxormx32"</p>
<p dir="auto">CONFIG(debug, debug|release) {<br />
TARGET = TecnoUnlockerDb<br />
LIBS += -l"QxOrmd"<br />
} else {<br />
TARGET = TecnoUnlockerDb<br />
LIBS += -l"QxOrm"<br />
} # CONFIG(debug, debug|release)</p>
<p dir="auto">!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {<br />
PRECOMPILED_HEADER = ./include/precompiled.h<br />
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)<br />
#qxorm ok end</p>
<p dir="auto">DEFINES += QT_DEPRECATED_WARNINGS</p>
<p dir="auto">#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0</p>
<p dir="auto">SOURCES += <br />
classproyects/conectmongodb.cpp <br />
main.cpp</p>
<p dir="auto">RESOURCES += qml.qrc</p>
<h1>Additional import path used to resolve QML modules in Qt Creator's code model</h1>
<p dir="auto">QML_IMPORT_PATH =</p>
<h1>Additional import path used to resolve QML modules just for Qt Quick Designer</h1>
<p dir="auto">QML_DESIGNER_IMPORT_PATH =</p>
<h1>Default rules for deployment.</h1>
<p dir="auto">qnx: target.path = /tmp/$${TARGET}/bin<br />
else: unix:!android: target.path = /opt/$${TARGET}/bin<br />
!isEmpty(target.path): INSTALLS += target</p>
<p dir="auto">HEADERS += <br />
classproyects/conectmongodb.h <br />
include/author.h <br />
include/export.h</p>
]]></description><link>https://forum.qt.io/post/760236</link><guid isPermaLink="true">https://forum.qt.io/post/760236</guid><dc:creator><![CDATA[jchaviano]]></dc:creator><pubDate>Thu, 01 Jun 2023 16:47:11 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Thu, 01 Jun 2023 06:34:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jchaviano">@<bdi>jchaviano</bdi></a> Please show your pro file</p>
]]></description><link>https://forum.qt.io/post/760152</link><guid isPermaLink="true">https://forum.qt.io/post/760152</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 01 Jun 2023 06:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Wed, 31 May 2023 21:30:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> <img src="https://ddgobkiprc33d.cloudfront.net/730ec8f7-f7a4-40ff-8ca8-e16dee6a4deb.png" alt="qtimagenes.png" class=" img-fluid img-markdown" /><br />
the project compiles but just by adding a .c file the libraries are lost</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/448be05f-195d-4e20-bc1a-302c3a7d81b6.png" alt="qtimagenes2.png" class=" img-fluid img-markdown" /><br />
the project works correctly, say that this is a simple implementation to show the error.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/c1954a48-ddeb-45d3-a219-ec0f35dceda5.png" alt="qtimagenes3.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">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</p>
<p dir="auto">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</p>
]]></description><link>https://forum.qt.io/post/760114</link><guid isPermaLink="true">https://forum.qt.io/post/760114</guid><dc:creator><![CDATA[jchaviano]]></dc:creator><pubDate>Wed, 31 May 2023 21:30:32 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Fri, 26 May 2023 19:27:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jchaviano">@<bdi>jchaviano</bdi></a> hi,</p>
<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> already requested, how are you adding that file ?<br />
What exact error are you getting ?</p>
]]></description><link>https://forum.qt.io/post/759556</link><guid isPermaLink="true">https://forum.qt.io/post/759556</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 26 May 2023 19:27:32 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Fri, 26 May 2023 16:54:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a><br />
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</p>
]]></description><link>https://forum.qt.io/post/759527</link><guid isPermaLink="true">https://forum.qt.io/post/759527</guid><dc:creator><![CDATA[jchaviano]]></dc:creator><pubDate>Fri, 26 May 2023 16:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to qt qxorm error to use .c files on Fri, 26 May 2023 05:24:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jchaviano">@<bdi>jchaviano</bdi></a> This is not enough information.<br />
How do you add this c file?<br />
What errors do you get then?</p>
]]></description><link>https://forum.qt.io/post/759471</link><guid isPermaLink="true">https://forum.qt.io/post/759471</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 26 May 2023 05:24:05 GMT</pubDate></item></channel></rss>