Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compiler and linker errors #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IsaacHorvath
Copy link

This should fix undefined scope errors for fprintf, stdout, and logic_error in glfft, and prevent a multiple definition error for glava_abort and glava_return.

@jobez
Copy link

jobez commented Feb 6, 2021

this resolved my build issues as well, thank you for your PR!

@QuLogic
Copy link

QuLogic commented Aug 3, 2021

Seems similar to (but not exactly the same as) #171?

@Nikita240
Copy link

+1 fixed my build issues

Copy link

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is correct. Those variables already have a definition in glava/glava.c so these declarations in the header should just be extern.

For why this is necessary since GCC 10, see the changes for -fno-common in the GCC 10 release notes and Porting to GCC 10 page.

@jwakely
Copy link

jwakely commented Dec 10, 2021

Seems similar to (but not exactly the same as) #171?

This one is correct, that one is wrong.

@shreyasSarve
Copy link

thanks for PR

@shreyasSarve shreyasSarve mentioned this pull request Jan 1, 2023
@rdosrun
Copy link

rdosrun commented Apr 21, 2023

this pr fixed my issue thanks

@DanielChicoUGR
Copy link

This pr solve the issue for Pop!_OS jammy 22.04 x86_64

@CocolinoFan
Copy link

I can confirm this PR solved my issue too. Why is this not merged, it was made almost 4 years ago!
I don't know how to work with a pull request. I had to clone IsaacHorvath's repository and build that.

@DanielChicoUGR
Copy link

I can confirm this PR solved my issue too. Why is this not merged, it was made almost 4 years ago!
I don't know how to work with a pull request. I had to clone IsaacHorvath's repository and build that.

Simple,

  1. Clone the repository
  2. Open the files that the PR modifies
  3. Modify the 3 lines that are changed
  4. Compile and done

@jwakely
Copy link

jwakely commented Sep 25, 2024

Modyfing the files by hand seems error prone, and impractical for larger changes. The commands you want are:

git clone https://github.com/jarcode-foss/glava.git
cd glava
git fetch origin refs/pull/185/head
git checkout FETCH_HEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants