View previous topic :: View next topic |
Author |
Message |
KuroKitten
Joined: 28 May 2008 Posts: 11
|
Posted: Thu May 29, 2008 5:33 pm Post subject: Problem Compiling |
|
|
I finally got Arclib-development installed via dsss and went to compile a really simple test program (all it does is initialize a window and check for input); however, whenever I try and compile, I get the following errors:
Code: | OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
F:\poseidon\dmd\import\tango\stdc\stdlib.obj(stdlib) Offset 001EBH Record Type 0091
Error 1: Previous Definition Different : _EXIT_SUCCESS
F:\poseidon\dmd\import\tango\stdc\stdlib.obj(stdlib) Offset 00270H Record Type 0091
Error 1: Previous Definition Different : _EXIT_FAILURE
F:\poseidon\dmd\import\tango\stdc\stddef.obj(stddef) Offset 00103H Record Type 0091
Error 1: Previous Definition Different : _WEOF
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 000B5H Record Type 0091
Error 1: Previous Definition Different : _BUFSIZ
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 000BFH Record Type 0091
Error 1: Previous Definition Different : _EOF
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 000CFH Record Type 0091
Error 1: Previous Definition Different : _FOPEN_MAX
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 000E2H Record Type 0091
Error 1: Previous Definition Different : _FILENAME_MAX
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 000F0H Record Type 0091
Error 1: Previous Definition Different : _TMP_MAX
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 00100H Record Type 0091
Error 1: Previous Definition Different : __SYS_OPEN
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 0010FH Record Type 0091
Error 1: Previous Definition Different : _SYS_OPEN
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 0019AH Record Type 0091
Error 1: Previous Definition Different : __NFILE
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 001AAH Record Type 0091
Error 1: Previous Definition Different : __P_tmpdir
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 001BBH Record Type 0091
Error 1: Previous Definition Different : __wP_tmpdir
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 001CAH Record Type 0091
Error 1: Previous Definition Different : _L_tmpnam
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 004E7H Record Type 0091
Error 1: Previous Definition Different : _stdin
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 004F4H Record Type 0091
Error 1: Previous Definition Different : _stdout
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 00501H Record Type 0091
Error 1: Previous Definition Different : _stderr
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 0050EH Record Type 0091
Error 1: Previous Definition Different : _stdaux
F:\poseidon\dmd\import\tango\stdc\stdio.obj(stdio) Offset 0051BH Record Type 0091
Error 1: Previous Definition Different : _stdprn |
This is my source code:
Code: | module main;
import
arc.input,
arc.window;
int main()
{
arc.window.open("Hello World", 800,600,0);
arc.input.open();
while (!arc.input.keyDown(ARC_QUIT))
{
arc.input.process();
arc.window.clear();
arc.window.swap();
}
arc.window.close();
return 0;
} |
I'm not sure exactly what the problem is, but I do know that it doesn't occur when I don't do anything with arclib - so I don't think it's a Tango installation issue.
Any ideas?
Meow. |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Thu May 29, 2008 8:16 pm Post subject: |
|
|
Could you give the details of how you installed Tango + arclib?
My guess is a faulty Tango installation. I always download the .zip files and extract tango to the directory of my choice.
http://www.dsource.org/projects/tango/wiki/DmdDownloads
After that, make sure you have the old arclib uninstalled before you install the new ones, otherwise you will have problems there too. |
|
Back to top |
|
|
KuroKitten
Joined: 28 May 2008 Posts: 11
|
Posted: Thu May 29, 2008 8:19 pm Post subject: |
|
|
I installed Tango via DSSS. I do a fresh install of all of the components, this time using your .zip link for tango instead, and see how things turn out.
I'll update with the results once I'm done =)
Mreow. |
|
Back to top |
|
|
KuroKitten
Joined: 28 May 2008 Posts: 11
|
Posted: Thu May 29, 2008 8:57 pm Post subject: |
|
|
I did a clean install of everything, as you said, and my errors have certainly whittled away; unfortunately, I still have one straggler:
Code: | OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
F:\poseidon\dmd\import\derelict\util\wrapper.obj(wrapper)
Error 42: Symbol Undefined _D5tango4text4Util7__arrayZ
|
Any ideas?
Edit: Hmm, I changed my code to import arc.all instead of arc.window, arc.input; This fixed the error. Is this a problem with arc? Or is it just inadvisable to only include choice modules?
Mew. |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Fri May 30, 2008 7:59 am Post subject: |
|
|
It looks like you might want to re-install / re-compile derelict after you installed Tango. Tango replaces phobos as the standard library, and therefore old code needs to be recompiled with it. |
|
Back to top |
|
|
|