Giter Club home page Giter Club logo

Comments (6)

Ant1r avatar Ant1r commented on July 29, 2024

Could it be related to the order the files are linked?
Currently, the order is:

MAIN: main.o ofApp.o
OFXPD: ofxPd.o
LIBPD: ringbuffer.o z_queued.o z_hooks.o z_libpd.o
PD: bob~.o bonk~.o (...) d_array.o d_dac.o (...)
STATIC: libopenFrameworks.a libkiss.a (...)
DYN: -lcairo -lz (...)

But the weird thing is that both ofApp.o (or ofxPd.o) and PD objects (like d_array.o) trigger the linking error, while they are located both side of LIBPD inclusion... So I don't see what order could be better.

from ofxpd.

Ant1r avatar Ant1r commented on July 29, 2024

Note: I also had to remove ADDON_CFLAGS += -DHAVE_LIBDL from addon_config.mk because compiler didn't find dlfcn.h, but that seems unrelated to the issue, and I don't need dynamic loading anyway.

But I'm still stuck on undefined reference to '__imp_*' ...
Ping @danomatika , any hint?

from ofxpd.

danomatika avatar danomatika commented on July 29, 2024

from ofxpd.

Ant1r avatar Ant1r commented on July 29, 2024

OK thanks. So maybe this can be controlled by some compiler flag?
I'm just starting to work on Windows again, which I haven't done since around 1998 :-)

from ofxpd.

Ant1r avatar Ant1r commented on July 29, 2024

OK! I have a working solution: for msys2 (and I guess for vs too) we have to add:
ADDON_CFLAGS += -DPD_INTERNAL
which is used by m_pd.h for setting the EXTERN macro.

from ofxpd.

danomatika avatar danomatika commented on July 29, 2024

Closing as a solution was found. Also, this solution is now in the master branch.

from ofxpd.

Related Issues (20)

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.