#Totally new to odin
16 messages · Page 1 of 1 (latest)
Ok. I have arrived at this error now:
C:>cd odin
C:\odin>odin run .
LINK : fatal error LNK1104: no se puede abrir el archivo 'C:\odin\odin.exe'
C:\odin>
you will need to add the odin exe directory to PATH
Sounds like the issue is running Odin from the Odin directory, it's trying to open odin.exe to write the compiled output to. So, it's working, you just need to run it where there's actual source code to build
(though you may still need to add it to PATH for it to work when run from other directories)
how do I add it to PATH?
Check the docs I linked, it explains/links to a guide
yeah i checked that. the guide is a link to a dudkduckgo "add to path windows"
im thinking this thing is a little too complicated for my current knowledge. i just want something simple to make a windows executable with raylib or similar
how do i run main.odin that is located in the same directory as odin.exe?
i did the path thing
the point of adding odin to path is that you don't put your .odin files where the compiler is
odin run . should now work in any folder
Do not put your Odin files in the odin.exe folder
wow. that worked thanks