Skip to content

For anyone having compatiblity issues running this #1

Open
@electronicsguy

Description

@electronicsguy

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions