On Saturday, 21 December 2013 at 09:35:33 UTC, Mike wrote:
On Saturday, 21 December 2013 at 08:51:11 UTC, Johannes Pfau wrote:
Am Sat, 21 Dec 2013 02:58:49 +0100
schrieb "Mike" <n...@none.com>:

On Saturday, 21 December 2013 at 00:07:17 UTC, Mike wrote:

I should probably add that if I remove my object.d file from the file system, I get:

cc1d: error: cannot find source code for runtime library file 'object.d' cc1d: note: dmd might not be correctly installed. Run 'dmd -man' for installation instructions.

I compiled gdc with the without the default phobos/runtime library, so my default include and lib folders are empty.

object.d: Can't compile with it; can't compile without it.

Hi Mike,

the arm-old branch has a new frontend version (2.064), the official
gdc-4.8 branch is at (2.063) but I'll push an update today.

Anyway, dmd 2.064 behaves the same way, it seems dmd 2.064 is pickier with object.d files. But what fixed it for me: Add a 'module object;'
line to your object.d file.

That was it. Thank you so much (I probably should have though of that myself).

My Minimal semihosted ARM Cortex-M Hello World is compiling with GDC and *executing* on my hardware. If feel silly saying so, but I'm so excited to see the words "hello" appear on my screen.

I'll update the D Wiki today with my code. Thanks everyone for the help.

Yes, it had to be something simple because library files are not different from other program files.

But then, what is the default module name of that file?
Gdc does not have a default search path and if I add -I. the current dir should be the search root.
Should the module name then default to the file name?
Is there a way to query and print the full module name at compile time?

Reply via email to