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

default include path for standard libraries? #722

Open
RodrigoDornelles opened this issue Apr 27, 2023 · 1 comment
Open

default include path for standard libraries? #722

RodrigoDornelles opened this issue Apr 27, 2023 · 1 comment

Comments

@RodrigoDornelles
Copy link

I'm building a development container on linux, with some samp tools (without sampctl), where everything is pre-installed, I'm wondering if there is a default includes folder. (like /usr/local/include or /usr/ local/include/pawno)

so you don't need to use the -i flag for samp and pawn standard includes.

if this feature does not exist, it would be interesting, so GCC compilers.

eg

use

$ pawncc gamemodes/bare.pwn

instead

$ pawncc -i/usr/loca/include gamemodes/bare.pwn
@RodrigoDornelles RodrigoDornelles changed the title defeault include path for standard libraries? default include path for standard libraries? Apr 27, 2023
@Zeex
Copy link
Contributor

Zeex commented Apr 29, 2023

Have you tried putting your includes in a include subdirectory inside the directory where pawncc is? It might just work. Another approach: put pawncc in bin and all the includes in include at the same directory level.

https://github.com/pawn-lang/compiler/blob/master/source/compiler/sc1.c#L1434

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