Making D Lang More easy.

Mafi mafi at example.org
Thu May 12 07:23:12 PDT 2011


Am 12.05.2011 12:52, schrieb Matthew Ong:
> Hi Walter,
>
> Thanks very much for the person reply to:
> http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=135959
>
>
>> Not sure what you mean by more complex than Java. The order of imports>in D is
> not important.
> If I separated a single module into multiple different file, the compilation
> process seems to give me a lot of issue. I read from other
> reply and also within the dmd/src directory, D seems to only allow one
> file per module. Unlike CPP/Java/C# and others, all the different classes and
> interfaces are centralized within a single file. That might give issue to IDE and
> other
> tool developers to write code generator, refactoring? might be dead wrong.
>
> I tried to upload attachment, but it failed to be shown on the web site.
> Hence, I email them over. Just in case that too is lost. Here are the strange(to me)
> error.
>
> Sorry that seems to be rude.
>
> BTW, were you involved with turbo C development in dos days in the past. You seems
> to be old school.
>
> Matthew Ong
>
> ------------------------------------------------------------------------------------
>> (4:50:21 PM) Compile D:\JDKs\D\devel\CornerCube\CornerCube\Exceptions.d
>> (4:50:21 PM) dmd.exe -c "D:\JDKs\D\devel\CornerCube\CornerCube\Exceptions.d"
> -of"D:\JDKs\D\devel\CornerCube\CornerCube\obj\Exceptions.obj"
> -I"D:\JDKs\D\dmd2\src\phobos" -I"D:\JDKs\D\dmd2\src\druntime\import" -gc -debug
>> (4:50:21 PM) Process ended with code 0
>> (4:50:21 PM) Compile D:\JDKs\D\devel\CornerCube\CornerCube\Collections.d
>> (4:50:21 PM) dmd.exe -c "D:\JDKs\D\devel\CornerCube\CornerCube\Collections.d"
> -of"D:\JDKs\D\devel\CornerCube\CornerCube\obj\Collections.obj"
> -I"D:\JDKs\D\dmd2\src\phobos" -I"D:\JDKs\D\dmd2\src\druntime\import" -gc -debug
>> (4:50:22 PM) Process ended with code 0
>> (4:50:22 PM) Compile D:\JDKs\D\devel\CornerCube\CornerCube\IO.d
>> (4:50:22 PM) dmd.exe -c "D:\JDKs\D\devel\CornerCube\CornerCube\IO.d"
> -of"D:\JDKs\D\devel\CornerCube\CornerCube\obj\IO.obj"
> -I"D:\JDKs\D\dmd2\src\phobos" -I"D:\JDKs\D\dmd2\src\druntime\import" -gc -debug
>> (4:50:22 PM) Process ended with code 0
>> (4:50:22 PM) Compile D:\JDKs\D\devel\CornerCube\CornerCube\Lang.d
>> (4:50:22 PM) dmd.exe -c "D:\JDKs\D\devel\CornerCube\CornerCube\Lang.d"
> -of"D:\JDKs\D\devel\CornerCube\CornerCube\obj\Lang.obj"
> -I"D:\JDKs\D\dmd2\src\phobos" -I"D:\JDKs\D\dmd2\src\druntime\import" -gc -debug
>> (4:50:22 PM) Process ended with code 0
>> (4:50:22 PM) Compile D:\JDKs\D\devel\CornerCube\CornerCube\Interfaces.d
>> (4:50:22 PM) dmd.exe -c "D:\JDKs\D\devel\CornerCube\CornerCube\Interfaces.d"
> -of"D:\JDKs\D\devel\CornerCube\CornerCube\obj\Interfaces.obj"
> -I"D:\JDKs\D\dmd2\src\phobos" -I"D:\JDKs\D\dmd2\src\druntime\import" -gc -debug
>> (4:50:22 PM) Process ended with code 0
>> (4:50:22 PM) Link files to D:\JDKs\D\devel\CornerCube\CornerCube\bin\CornerCube.exe
>> (4:50:22 PM) dmd.exe "obj\Exceptions.obj" "obj\Collections.obj" "obj\IO.obj"
> "obj\Lang.obj" "obj\Interfaces.obj"
> -of"D:\JDKs\D\devel\CornerCube\CornerCube\bin\CornerCube.exe" -gc -debug
>> (4:50:23 PM) Process ended with code 31
> OPTLINK (R) for Win32  Release 8.00.8
......
>   Error 42: Symbol Undefined _D3std9container12__ModuleInfoZ
> OPTLINK : Warning 134: No Start Address
> --- errorlevel 31
>

Look at the last error. It means you have no main(){} and there can't be 
an .exe without a main.
Maybe you wanted to link them without making an executable. Then you 
need to pass the '-lib' switch.

Mafi



More information about the Digitalmars-d mailing list