Hey, there.
I'm getting a permission error when I go to compile a program built in Nim. I can compile fine if I use sudo nim, but that makes me enter the password each time into Visual Studio Code, so I'd rather not have to do that. Any advice?
Here's the error in full:
solarlune@solarlune-linux ~/Documents/Projects/Nim/TestGame $ nim compile ./main.nim
Hint: used config file '/etc/nim.cfg' [Conf]
Hint: system [Processing]
Hint: main [Processing]
CC: main
Error: execution of an external compiler program 'gcc -c -w -I/usr/lib/nim -o /home/solarlune/Documents/Projects/Nim/TestGame/nimcache/main.o /home/solarlune/Documents/Projects/Nim/TestGame/nimcache/main.c' failed with exit code: 1
cc1: error: /usr/local/include: Permission denied
EDIT: Resolved it (I think?) by opening a file manager and editing the permissions of /usr/local and its contents to be viewable by other groups.
Im trying to compile the Tic Tac Toe UI game on xmonader.github.io But I get this error saying: cc1plus.exe: fatal error: C:Userstorar.nimblepkgsui-0.9.4uilibuiwindowsalloc.cpp: Permission denied compilation terminated.
I tried running CMD in Admin mode, and I tried setting cc1plus.exe to administrator mode, but the same error keeps appearing.
I really want to learn how to use basic UI's in my applications, since Im planning to make a very simple brain exercise program that just needs some basic text labels and a few click buttons.