help-octave
[Top][All Lists]
Advanced

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

Library not found with mkoctfile C++


From: Vision
Subject: Library not found with mkoctfile C++
Date: Fri, 11 Mar 2016 03:19:36 -0800 (PST)

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 C:/mydirectory/main.cpp C:/mydirectory/snap7.cpp -LC:/MinGW64/lib
-LC:/mydirectory/ -static-libgcc
C:/MinGW64/lib/gcc/x86_64-w64-mingw32/5.3.0/libstdc++.a snap7.lib
-IC:/MinGW64/include -IC:/mydirectory/

Can someone point me what I'm doing wrong?

Thank you 



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



reply via email to

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