ooc-lang / rock

:ocean: self-hosted ooc compiler that generates c99
http://ooc-lang.org/
MIT License
401 stars 40 forks source link

Rock cannot find sdk when run from make #1001

Open refi64 opened 8 years ago

refi64 commented 8 years ago

Create the following simple Makefile:

x :
    rock -v x.ooc

Now make an empty file x.ooc. This is what happens when I then run make:

rock -v x.ooc
Parsing...

x/x.ooc:1:0 error Use not found in the ooc library path: sdk

To install ooc libraries, copy their directories to /usr/lib/ooc/
If you want to install libraries elsewhere, use the OOC_LIBS environment variable,
which is the path ooc will scan for .use files (in this case, sdk.use).
For more information, see http://ooc-lang.org/docs/tools/rock/usefiles/
-------------------

[FAIL]
make: *** [x] Error 
slice commented 8 years ago

@kirbyfan64 How did you install OOC? I cannot reproduce this.

alexnask commented 8 years ago

Weird, it should look into the executable's parent directory and try to find it regardless on how it was ran.

Will look into reproducing this.