Hi Matt, On Monday, April 1, 2019 at 6:53:00 PM UTC+3, Matt Chelen wrote: > > I'm trying to get ATS-Contrib set up and I'm concerned that I don't > currently have it configured correctly. As per the documentation, I put the > "contrib" folder in $PATSHOME and set $PATSCONTRIB to $PATSHOME. > > The issue is that I tried compiling the SDL sample programs and, while the > ATS compiler compiles them just fine, I get errors like the following from > the resulting C source. > > $ make > "/usr/local/lib/ats2-postiats-0.3.13"/bin/patscc -I > "/usr/local/lib/ats2-postiats-0.3.13" -I > "/usr/local/lib/ats2-postiats-0.3.13"/ccomp/runtime -D_GNU_SOURCE -I/usr/ > include/SDL2 -D_REENTRANT -o test00 test00.dats -L > "/usr/local/lib/ats2-postiats-0.3.13"/ccomp/atslib/lib -latslib -lSDL2 > test00_dats.c:82:10: fatal error: SDL2/CATS/SDL.cats: No such file or > directory > #include "SDL2/CATS/SDL.cats" > ^~~~~~~~~~~~~~~~~~~~ > compilation terminated. > make: *** [Makefile:41: test00] Error 1 > > The same thing happens if I set $PATSCONTRIB to $PATSHOME/contrib. Did I > set something up incorrectly? Is this a problem with the library? Is this a > Cygwin issue? >
Could you check what is in those -I directories? In particular, where are the SDL2/CATS/SDL.cats files located, and what is your $PATSCONTRIB, does it have an SDL2 subdirectory? > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/d0bf3b79-e8c8-4ae1-b690-6fe926fb5821%40googlegroups.com.
