AntKrotov / oberon-07-compiler

Oberon-07 compiler for x64 (Windows, Linux), x86 (Windows, Linux, KolibriOS), MSP430x{1,2}xx, STM32 Cortex-M3
BSD 2-Clause "Simplified" License
61 stars 5 forks source link

Command line compiler reports not finding lib. #23

Open Spoiledpay opened 8 months ago

Spoiledpay commented 8 months ago

Test in the Windows console, using the command line, and adding compiler.exe to the path. It informs you with a warning that it cannot find a file and therefore does not compile it.

1 - Compiler.exe Prog.ob07 win64con -out Prog.exe A - Akron Oberon Compiler v1.66 (64-bit) 10-feb-2023 Copyright (c) 2018-2023, Anton Krotov

file C:\temp\oberon07\samples\Windows\hello\lib\Windows\RTL.ob07 not found

but,

1 - C:\temp\oberon07>Compiler.exe c:\temp\oberon07\samples\Windows\hello\Prog1.ob07 win64con -out C:\temp\oberon07\samples\Windows\hello\Prog1.exe

Akron Oberon Compiler v1.66 (64-bit) 10-feb-2023 Copyright (c) 2018-2023, Anton Krotov

compiling (1) API (SYSTEM) compiling (2) RTL (SYSTEM) compiling (3) Out (SYSTEM) compiling (4) Prog1

780 lines, 0.00 sec, 7168 bytes

If you pass the complete path line, it compiles. But in the case if only the place where the code to be compiled is, it cannot find the lib and does not compile. Is there a way to adjust this?

thanks

AntKrotov commented 8 months ago

'lib' folder must be in the same folder as the compiler. An alternative way is to place all program modules (including RTL and API) in one folder. I don't know how to do it better.