<?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[[Resolved] Errors including NEFIS library]]></title><description><![CDATA[<p dir="auto">Hi All -</p>
<p dir="auto">I've been working for a few nights now trying to get the NEFIS library (Distributed by Deltares in the Netherlands) included in a project of mine. For some reason, this is giving me a real headache. Deltares includes a visual studio project file which did not yield a usable dll, so I figured I would just make my own project in Qt to build the library, however, I seem to get undefined reference errors when trying to include it in my project that will use it. I'm not fluent enough in C/C++/Qt to really get into what is going on here, so I was hoping someone might be able to take a look and give me a suggestion. I've placed a copy of the library on a transfer site in case anyone does have a second to take a peek. My hunch is something is screwy when some of the function names are redefined, and it is just something that evades my knowledge.</p>
<p dir="auto">Link: we. tl/ Oru7X0xo1W</p>
<p dir="auto">Thanks all,</p>
<p dir="auto">Zach</p>
]]></description><link>https://forum.qt.io/topic/56065/resolved-errors-including-nefis-library</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 08:10:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/56065.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Jul 2015 05:25:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Resolved] Errors including NEFIS library on Thu, 09 Jul 2015 20:54:04 GMT]]></title><description><![CDATA[<p dir="auto">IIRC, you can also use</p>
<pre><code>extern "C" {
#include "mycinclude.h"
}
</code></pre>
]]></description><link>https://forum.qt.io/post/281768</link><guid isPermaLink="true">https://forum.qt.io/post/281768</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 09 Jul 2015 20:54:04 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Errors including NEFIS library on Thu, 09 Jul 2015 03:14:27 GMT]]></title><description><![CDATA[<p dir="auto">Wow. My hunch about it being something simple was dead on the money. Even an old FORTRAN programmer knows when it should be easy and it isn't. Turns out my self taught C/C++ didn't include the section on setting up headers for calls between C and C++ libraries. For the netCDF libraries, which I've used in the past, they were already set with:</p>
<p dir="auto">#if defined(__cplusplus)<br />
extern "C" {<br />
#endif</p>
<p dir="auto">However, the NEFIS library was not, which is what caused the issue. Now that I've set these flags in the header, things are working as expected. Thanks for all your guys help, as always.</p>
]]></description><link>https://forum.qt.io/post/281628</link><guid isPermaLink="true">https://forum.qt.io/post/281628</guid><dc:creator><![CDATA[goalie39]]></dc:creator><pubDate>Thu, 09 Jul 2015 03:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Errors including NEFIS library on Wed, 08 Jul 2015 17:43:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> I believe I have. I've tried to create a simple test project to replicate the issue. I've placed it here:</p>
<p dir="auto"><a href="http://we.tl/jxCNmJOoPE" target="_blank" rel="noopener noreferrer nofollow ugc">http://we.tl/jxCNmJOoPE</a></p>
<p dir="auto">There are two .pro files in the archive. One is the test project (which is just the default project with a couple extra routines tossed in) and the other is one to build the DLL. (in the nefis folder). I'm pretty sure i'm just not doing something fairly simple right, but I'm a bit green on some of this so I'm sure an experienced set of eyes would realize my mistake pretty quickly.</p>
<p dir="auto">I've also tried contacting the developers of the library, but they haven't been much help to this point, unfortunately.</p>
<p dir="auto">Thanks for your time,</p>
<p dir="auto">Zach</p>
]]></description><link>https://forum.qt.io/post/281581</link><guid isPermaLink="true">https://forum.qt.io/post/281581</guid><dc:creator><![CDATA[goalie39]]></dc:creator><pubDate>Wed, 08 Jul 2015 17:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Errors including NEFIS library on Mon, 06 Jul 2015 22:55:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Maybe a silly question, but are you sure you have everything for the same architecture ?</p>
]]></description><link>https://forum.qt.io/post/281316</link><guid isPermaLink="true">https://forum.qt.io/post/281316</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 06 Jul 2015 22:55:47 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Errors including NEFIS library on Mon, 06 Jul 2015 15:31:36 GMT]]></title><description><![CDATA[<p dir="auto">NetZwerg -</p>
<p dir="auto">Sure. The error message is as follows:</p>
<pre><code>mingw32-make[1]: Entering directory 'C:/Users/zcobell/Documents/GitHub/build-MetOceanViewer-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
g++ -Wl,-subsystem,windows -mthreads -o debug\MetOcean_Viewer.exe object_script.MetOcean_Viewer.Debug  -lmingw32 -LC:/Qt/5.5/mingw492_32/lib -lqtmaind -lshell32 -LC:/Users/zcobell/Documents/GitHub/MetOceanViewer/thirdparty/netcdf/libs -lnetcdf -lhdf5 -lz -lcurl -LC:/Users/zcobell/Documents/GitHub/MetOceanViewer/thirdparty/nefis/libs -lnefis -lQt5WebKitWidgetsd -lQt5Widgetsd -lQt5WebKitd -lQt5Guid -lQt5Networkd -lQt5Xmld -lQt5Cored debug\resources_res.o 
./debug\timeseries_data.o: In function `Z9readNefisv':
C:\Users\zcobell\Documents\GitHub\build-MetOceanViewer-Desktop_Qt_5_5_0_MinGW_32bit-Debug/../MetOceanViewer/src/timeseries_data.cpp:582: undefined reference to `Clsnef(int*)'
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:134: recipe for target 'debug\MetOcean_Viewer.exe' failed
</code></pre>
<p dir="auto">And my .pro file is as follows:</p>
<pre><code>QT       += core gui webkitwidgets network xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = MetOcean_Viewer
TEMPLATE = app


SOURCES += src/main.cpp\
    src/ui_hwm_tab.cpp \
    src/ui_noaa_tab.cpp \
    src/ui_usgs_tab.cpp \
    src/hwm_data.cpp \
    src/hwm_functions.cpp \
    src/noaa_functions.cpp \
    src/usgs_functions.cpp \
    src/general_functions.cpp \
    src/timeseries_data.cpp \
    src/timeseries_functions.cpp \
    src/timeseries_add_data.cpp \
    src/ui_timeseries_tab.cpp \
    src/about_dialog.cpp \
    src/fileio.cpp \
    src/MetOceanViewer_main.cpp \

HEADERS  += \
    include/hwm.h \
    include/timeseries_add_data.h \
    include/timeseries.h \
    include/about_dialog.h \
    version.h \
    include/MetOceanViewer.h \

FORMS    += \
    ui/timeseries_add_data.ui \
    ui/about_dialog.ui \
    ui/MetOceanViewer_main.ui

OTHER_FILES +=

LIBS += -L$$PWD/thirdparty/netcdf/libs -lnetcdf -lhdf5 -lz -lcurl \
        -L$$PWD/thirdparty/nefis/libs -lnefis

INCLUDEPATH += include $$PWD/thirdparty/nefis/src/include \
                       $$PWD/thirdparty/netcdf/include

RESOURCES += \
    MetOceanViewer.qrc

RC_FILE = resources.rc
</code></pre>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/post/281286</link><guid isPermaLink="true">https://forum.qt.io/post/281286</guid><dc:creator><![CDATA[goalie39]]></dc:creator><pubDate>Mon, 06 Jul 2015 15:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Errors including NEFIS library on Mon, 06 Jul 2015 06:48:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello goalie39,</p>
<p dir="auto">would it be possible to actually post the error given by the compiler/linker? I would guess the desired library may just depend on another library being present or the linker is not given the correct information. Please post the error itself and a copy of your .pro file.</p>
]]></description><link>https://forum.qt.io/post/281223</link><guid isPermaLink="true">https://forum.qt.io/post/281223</guid><dc:creator><![CDATA[NetZwerg]]></dc:creator><pubDate>Mon, 06 Jul 2015 06:48:20 GMT</pubDate></item></channel></rss>