Comments (4)
Did you try to use the 64 bit version (fwlib64
)?
My build commands on Windows are (I am using Code::Blocks 20.03 with the GNU GCC Compiler):
gcc.exe -Wall -Wextra -Wall -m64 -g -c C:\Users\Username\Documents\Projects\test--codeblocks-c--fanuc-focas\main.c -o obj\Debug\main.o
gcc.exe -Llib -o bin\Debug\test--codeblocks-c--fanuc-focas.exe obj\Debug\main.o -m64 -lfwlib64
Output file is bin\Debug\test--codeblocks-c--fanuc-focas.exe with size 94.14 KB
from fwlib.
I agree with @bolduz that this looks like an architecture incompatibility. With gcc
on Linux, normally you would use gcc -m32 ...
to compile with the 32-bit library.
I don't have a windows machine with gcc
installed but if you have Visual Studio or Visual Studio tools (cl.exe
), the build command looks like this:
cl.exe /Fe"fanuc_minimal.exe" .\examples\c-minimal\main.c /link .\Fwlib32.lib
If building with gcc
on windows is a hard requirement, I can take another look at why this may not be working for you.
I've updated the README with notes for building c-minimal on Windows
from fwlib.
Yes with Visual Studio I was able to Run the Code and it starts Working. Thanks for the Help
from fwlib.
you should use fwlib64.dll libraries on win10,i think this might help https://github.com/wheeliar/FANUC_Focas_API/tree/main/Fwlib64
gcc main.c -o cppx64.dll -DBUILD_DLL -L. -lFwlib64 -shared
from fwlib.
Related Issues (18)
- un-normal read value using ubutun 20 x64 with libfwlib32-linux-x64.so.1.0.5 HOT 2
- Compile for aarch64 HOT 1
- Undefined symbol calling cnc_sdtsetchnl
- how to use the library in a windows container HOT 1
- Hello, will you support macos? HOT 1
- Is this the dll and so file officially provided by Fanuc?
- Question about aarch64 support HOT 4
- armv8
- What function should the set S be obtained by HOT 2
- Got an error on Ubuntu 16 64bit HOT 3
- is cnc_rdparam() able on ubuntu64? HOT 1
- Question about aarch64 support HOT 4
- Bind the socket to an interface HOT 1
- Perform "cmake .." fail in "examples/c/build" HOT 2
- Libs for armv7 HOT 2
- Libs for mipsel linux HOT 1
- Can the library support the reading of pmc data? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fwlib.