Giter Site home page Giter Site logo

Build fails with linker errors about aqb HOT 6 CLOSED

gooofy avatar gooofy commented on May 12, 2024
Build fails with linker errors

from aqb.

Comments (6)

gooofy avatar gooofy commented on May 12, 2024

I cannot reproduce this problem here on Fedora 33&35 so it does seem to be somewhat distro dependant. Could you provide a patch or pull request for config.mk.tmpl and/or the Makefiles providing linker flags that work for you?

from aqb.

gylead avatar gylead commented on May 12, 2024

My suggested change is

${BINDIR_LINUX}/aqb: $(OBJS_LINUX)
$(CC_LINUX) $(CFLAGS_LINUX) -o $@ $^ $(LDFLAGS_LINUX)

(All linker Flags and especially any -lm are added to the end of the command line). I do not understand why the original command line does not fail on your side. A lot of guides (e.g., on Stack Overflow) says that linker libraries are linked in the order of the command line. Symbols that are defined by libraries before an object file or another library cannot be referenced by them. Fedora seems to use a linker with a different approach.

from aqb.

gooofy avatar gooofy commented on May 12, 2024

sorry for my late reply, was very busy with the new source level debugging feature coming up in AQB 0.8. I have applied the linker command line fix you suggested - could you try again on your setup and see if the issue is fixed?

(BTW: are you the Jochen Becher from H&P ? :) )

from aqb.

gylead avatar gylead commented on May 12, 2024

(Don't know if you received my other personal reply): I will try the fix next week. And yes, I am the Jochen Becher from H&P.

from aqb.

gooofy avatar gooofy commented on May 12, 2024

Hi Jochen - what an honor! :) haven't seen any personal reply, you can reach me at [email protected]. You can write in german, if that is more convenient for you - looking forward to hear from you! :)

from aqb.

gylead avatar gylead commented on May 12, 2024

Cloned the repository again and built on master. Works well (after creating config.mk and removing foo.bas from SRCS rule). Linking does not fail anymore. Issue is fixed.

from aqb.

Related Issues (19)

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.