#Totally new to odin

16 messages · Page 1 of 1 (latest)

hollow star
#

Hi, can you recommend a guide to setup odin with the compiler on windows 11?

dusk anchor
hollow star
#

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>

swift arch
#

you will need to add the odin exe directory to PATH

shy glen
#

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)

dusk anchor
#

Check the docs I linked, it explains/links to a guide

hollow star
#

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

hollow star
#

how do i run main.odin that is located in the same directory as odin.exe?

#

i did the path thing

radiant flare
#

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

dusk anchor
#

Do not put your Odin files in the odin.exe folder

hollow star
#

wow. that worked thanks