GithubHelp home page GithubHelp logo

Comments (4)

bolduz avatar bolduz commented on July 18, 2024 1

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.

strangesast avatar strangesast commented on July 18, 2024 1

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.

forcmti avatar forcmti commented on July 18, 2024

Yes with Visual Studio I was able to Run the Code and it starts Working. Thanks for the Help

from fwlib.

lovedva avatar lovedva commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.