Re: [Oorexx-devel] Problem on compiling runRexxProgram from native.api on Linux

2021-10-16 Thread Rony G. Flatscher
Dear P.O., congratulations! :) On 16.10.2021 16:30, P.O. Jonsson wrote: > Your links brought me (almost) to the end, here is the content of   > Makefile.macOS: > > # A pretty simple make file that should work on macOS > > # this needs to follow after file for which link resolution is needed > OOR

Re: [Oorexx-devel] Problem on compiling runRexxProgram from native.api on Linux

2021-10-16 Thread P.O. Jonsson
Dear Rony, Your links brought me (almost) to the end, here is the content of Makefile.macOS: # A pretty simple make file that should work on macOS # this needs to follow after file for which link resolution is needed OOREXX_LFLAGS = -I../../../../include -L../../../../lib -lrexx -lrexxapi # W

Re: [Oorexx-devel] Problem on compiling runRexxProgram from native.api on Linux

2021-10-16 Thread Rony G. Flatscher
Hi P.O., just a few thoughts (am about to leave the office): * the compiler needs to be able to resolve the include files, cf. , on Linux they are found (while ooRexx is installed), * the compiler needs to be able to locate the d

Re: [Oorexx-devel] Problem on compiling runRexxProgram from native.api on Linux

2021-10-16 Thread P.O. Jonsson
Dear Rony, I wanted to try this out on macOS (High Sierra) but got into problems straight away POs-QuadCore-Mac-Pro:native.api po$ make -f Makefile.macOS clean rm -f stackOverflow runRexxProgram POs-QuadCore-Mac-Pro:native.api po$ make -f Makefile.macOS all gcc runRexxProgram.cpp -lrexx -lrexxap

Re: [Oorexx-devel] Problem on compiling runRexxProgram from native.api on Linux

2021-10-16 Thread Rony G. Flatscher
Here a minimal working Makefile.linux: # A pretty simple make file that should work on most Unix-like platforms that have gcc. OOREXX_LFLAGS = -lrexx -lrexxapi # needs to follow after file for which link resoultion is needed # What we want to build. all: runRexxProgram stackOv

Re: [Oorexx-devel] Problem on compiling runRexxProgram from native.api on Linux

2021-10-15 Thread Rony G. Flatscher
After having time to look closer, it turns out that the Makefile.linux has been faulty! Here a version that works (a little bit simplified and removed a superfluous definition, the link switches now trail the file to be created): OOREXX_LFLAGS = -L. -ldl -lrexx -lrexxapi OOREXX_CFLAGS =