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

For anyone having compatiblity issues running this #1

Open
electronicsguy opened this issue Dec 11, 2017 · 1 comment
Open

For anyone having compatiblity issues running this #1

electronicsguy opened this issue Dec 11, 2017 · 1 comment

Comments

@electronicsguy
Copy link

electronicsguy commented Dec 11, 2017

Hi,
I used your code and the makefile doesn't work. That's because of the concerns listed here: rpath-makefile and also that you need an extra switch.

Add/modify these lines to the Makefile:

# Add the c99 standard library switch for getting for loops with init variable to work
# See this: gcc-default-stdc
CFLAGS = -DSHM -Wall -fPIC -std=c99

# As explained in the SO link above, 'rpath' is not necessarily valid as a linker switch for gcc directly
LDFLAGS = "-Wl,-rpath,./,-L./,-lrbuf"

# within the "test" section, change the line to this:
$(CC) $(CFLAGS) $(LDFLAGS) -g -o $@_dynamic $< -I$(SRCDIR)/

The do:

make
make test

run the 2 tests and you should see not output (errors).

@jbro
Copy link
Owner

jbro commented Dec 12, 2017

Hi @electronicsguy

if you make a pull request with your changes, then I don't mind integrating them.

Regards
Jesper

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

No branches or pull requests

2 participants