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

Simpler Example #3

Closed
ViralBShah opened this issue Dec 1, 2017 · 1 comment
Closed

Simpler Example #3

ViralBShah opened this issue Dec 1, 2017 · 1 comment

Comments

@ViralBShah
Copy link
Member

Makie is a great example - but would be great to have a simpler example that is easy for people to try out.

@SimonDanisch
Copy link
Collaborator

Pkg.test compiles Matcha.jl, which is my smallest and most independant package :)

SimonDanisch added a commit that referenced this issue Dec 1, 2017
SimonDanisch pushed a commit that referenced this issue Feb 13, 2018
* Avoid need to change program.c by providing name.

Changes juliac.jl to provide the name of the created shared lib
("libhello") to the c preprocessor as a macro, via "-D".

This way you do not need to modify the provided program.c when compiling
a new julia program.

Addresses issue #3.

* fix: Also use macro for libname in program2.c

* Update README to reflect macro defined libname.

Remove references from README to changing the image name manually in
`program.c`. Add note about the availability of the image lib name in
the C preprocessor macro.

* Rename lib-name macro variable; remove default val.

s/JULIA_LIB_NAME/JULIAC_JL_PROGRAM_LIBNAME/g;
Remove default value. The libname *must* be provided on the commandline
via `-DJULIAC_JL_PROGRAM_LIBNAME="libname"`.
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