help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Library not found with mkoctfile C++


From: Dii
Subject: Re: Library not found with mkoctfile C++
Date: Sat, 12 Mar 2016 11:27:04 -0800 (PST)

Vision wrote
> Hey,
> 
> My main.cpp makes use of following files snap7.lib snap7.dll snap7.cpp
> snap7.h in C:/mydirectory/
> 
> I have next code that works for me to compile a C++ code on a Windows 64
> bit.
> path=c:\MinGW64\bin;c:\MinGW64\x86_64-w64-mingw32\bin;PATH
> mingw32-make
> g++.exe -o client.exe main.cpp snap7.cpp -L"C:/MinGW64/lib" -static-libgcc
> C:/MinGW64/lib/gcc/x86_64-w64-mingw32/5.3.0/libstdc++.a snap7.lib 
> -I"C:/MinGW64/include"
> 
> 
> 
> When I try to translate this to octmkfile, I get undefined reference
> errors in snap7.cpp that links to the snap7.lib (I think).
> 
> mkoctfile main.cpp snap7.cpp -L"C:/MinGW64/lib" -static-libgcc
> C:/MinGW64/lib/gcc/x86_64-w64-mingw32/5.3.0/libstdc++.a snap7.lib
> -I"C:/MinGW64/include"
> 
> Can someone point me what I'm doing wrong?
> 
> Thank you

I've once used it this way:
mkoctfile ce5.cpp fort5.o  '-L, /usr/lib/x86_64-linux-gnu/libgomp.so.1'
Since octave doesn't process these lines on its own, there's no reason not
to encompass them in quotes.



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Library-not-found-with-mkoctfile-C-tp4675379p4675440.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]