Opened 5 years ago

Closed 5 years ago

#311 closed enhancement (fixed)

Better error message when trying to -make something without a main function

Reported by: benl Owned by:
Priority: normal Milestone: 0.3.3
Component: Compilation Driver Version: 0.3.2
Keywords: Cc:

Description

$ bin/ddc -make demo/Tetra/Factorial/Test.dct
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
packages/ddc-code/build/libddc-runtime.so: undefined reference to `_DDC_Runtime_heapMax'
packages/ddc-code/build/libddc-runtime.so: undefined reference to `_DDC_Runtime_heapTop'
collect2: error: ld returned 1 exit status
ddc: System command failed when invoking external linker.
 Command was: gcc -m64 -o demo/Tetra/Factorial/Test demo/Tetra/Factorial/Test.o packages/ddc-code/build/libddc-runtime.so
 Exit code:   1

Change History (2)

comment:1 Changed 5 years ago by benl

  • Component changed from Unknown to Compilation Driver
  • Type changed from defect to enhancement

comment:2 Changed 5 years ago by benl

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.