View previous topic :: View next topic |
Author |
Message |
Damián
Joined: 06 Jan 2006 Posts: 5 Location: Buenos Aires, Argentina
|
Posted: Fri Jan 06, 2006 10:02 am Post subject: help for a beginner, please... |
|
|
I'm a beginner in D and command line compilers, and i'm trying to use dfl but I only get Error 42: Symbol Undefined.
I'm using:
D version 0.142
DFL version 0.9 (alpha)
what am i doing wrong? |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Fri Jan 06, 2006 10:42 am Post subject: Re: help for a beginner, please... |
|
|
Damián wrote: | I'm a beginner in D and command line compilers, and i'm trying to use dfl but I only get Error 42: Symbol Undefined.
I'm using:
D version 0.142
DFL version 0.9 (alpha)
what am i doing wrong? | It's hard to say without more of a description of what you're trying to do. Many things can cause that particular linker message. Maybe this will help:
http://www.prowiki.org/wiki4d/wiki.cgi?ErrorMessages#Error42SymbolUndefined
If it doesn't help, you should provide more details such as what commands are you sending to DMD and what the *.d source files have in them. Perhaps you could cut down the file you're compiling to the smallest file that causes the particular error. |
|
Back to top |
|
|
Damián
Joined: 06 Jan 2006 Posts: 5 Location: Buenos Aires, Argentina
|
Posted: Fri Jan 06, 2006 11:26 am Post subject: Re: help for a beginner, please... |
|
|
ok, I will look at that link, but by now:
I'm trying to compile the example "paint.d"
I'm using dfl.exe this way
dfl.exe paint.d -gui
I receive:
C:\dmd\bin\dmd.exe paint.d -IC:\dmd\import -L/exet:nt/su:windows:4.0 C:\dmd\lib\
dfl.lib
C:\dmd\bin\..\..\dm\bin\link.exe paint,,,C:\dmd\lib\dfl.lib+user32+kernel32/noi/
exet:nt/su:windows:4.0;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
paint.obj(paint)
Error 42: Symbol Undefined _D3dfl5event40__T5EventTC3dfl7control14PaintEventArg
sZ5Event11opCatAssignFDFC6ObjectC3dfl7control14PaintEventArgsZvZv
paint.obj(paint)
Error 42: Symbol Undefined _D3dfl5event10__T5EventZ5Event11opCatAssignFDFC6Obje
ctC3dfl5event9EventArgsZvZv
--- errorlevel 2
Returned status code 2
Also tried using dmd.exe this way:
dmd.exe paint.d dfl.lib -L/exet:nt/su:windows:4.0
and this is what i get:
C:\dmd\bin\..\..\dm\bin\link.exe paint,,,dfl.lib+user32+kernel32/noi/exet:nt/su:
windows:4.0;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
paint.obj(paint)
Error 42: Symbol Undefined _D3dfl5event40__T5EventTC3dfl7control14PaintEventArg
sZ5Event11opCatAssignFDFC6ObjectC3dfl7control14PaintEventArgsZvZv
paint.obj(paint)
Error 42: Symbol Undefined _D3dfl5event10__T5EventZ5Event11opCatAssignFDFC6Obje
ctC3dfl5event9EventArgsZvZv
--- errorlevel 2
Also tried using build.exe this way:
build.exe paint.d
but I get a huge list of Error 42
I hope this helps.
|
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Fri Jan 06, 2006 12:03 pm Post subject: Re: help for a beginner, please... |
|
|
You say you have DFL version 0.9 but you need 0.9.1. Is this this issue? |
|
Back to top |
|
|
Damián
Joined: 06 Jan 2006 Posts: 5 Location: Buenos Aires, Argentina
|
Posted: Fri Jan 06, 2006 12:26 pm Post subject: Re: help for a beginner, please... |
|
|
Vathix wrote: | You say you have DFL version 0.9 but you need 0.9.1. Is this this issue? |
I downloaded it from:
http://www.dprogramming.com/dfl.php
and the file I downloades is:
http://www.dprogramming.com/dfl09-dmd0127.zip
in readme.txt says "Version 0.9 (alpha)"
Should I download 0.9.1? I don't found any link to that.
thanks for your help, Vathix!! |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Fri Jan 06, 2006 1:13 pm Post subject: Re: help for a beginner, please... |
|
|
Damián wrote: | in readme.txt says "Version 0.9 (alpha)"
Should I download 0.9.1? I don't found any link to that. |
Yes, you need to match DMD version with the one DFL expects, due to how lib files work and language changes. DFL 0.9.1 should be available right on http://www.dprogramming.com/dfl.php under the Download section. |
|
Back to top |
|
|
Damián
Joined: 06 Jan 2006 Posts: 5 Location: Buenos Aires, Argentina
|
Posted: Fri Jan 06, 2006 1:16 pm Post subject: Re: help for a beginner, please... |
|
|
I'm really really sorry!!!!
I've never imagined that you would update the page today... I was not refreshing it in my internet explorer so I was seeing the old one.
I'm downloading it, I'll tell you if i can make it work.
thanks! |
|
Back to top |
|
|
Rohan
Joined: 05 Jan 2007 Posts: 22
|
Posted: Sun Dec 02, 2007 1:19 pm Post subject: |
|
|
Who can explain how work with DFL
I downloaded and install DFL and Entice Designer and try to compile small example. Compile respond me:
Code: | C:\dmd\bin>dfl -gui C:\new.d
Compiling in debug mode; use -release to compile in release mode
C:\dmd\bin\dmd.exe C:\new.d -version=DFL_EXE -debug -IC:\dmd\import -L/exet:nt/s
u:windows:4.0 C:\dmd\lib\DFL_DE~1.LIB
.\link.exe new,,,C:\dmd\lib\DFL_DE~1.LIB+user32+kernel32/noi/exet:nt/su:windows:
4.0; |
but exe wasn't create. Why?
Also I run CodeBlock and try to compiled example there
but CB swear on first string "import dfl.all;" and say that "C:\new.d:1: module all cannot read file 'dfl\all.d'"
What's wrong? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Dec 04, 2007 1:57 pm Post subject: |
|
|
Because you're compiling from C:\dmd\bin (it is the current directory), that's where the resulting exe file will be placed. It's better to put C:\dmd\bin in your PATH environment variable and compile from a directory near the source. |
|
Back to top |
|
|
Rohan
Joined: 05 Jan 2007 Posts: 22
|
Posted: Fri Dec 07, 2007 11:49 am Post subject: |
|
|
Which command should I use to compile program in Entice Designer?
can I use another IDE for writing programs, for example Code:Block? I have got error
"D:\dev\d\test.d:1: module all cannot read file 'dfl\all.d'
:: === Build finished: 1 errors, 0 warnings ===
" |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sat Dec 08, 2007 4:17 pm Post subject: |
|
|
Rohan wrote: | Which command should I use to compile program in Entice Designer? |
Just enter a command you would type at the command line at the directory containing the sources, such as dfl -gui test.d
Quote: | can I use another IDE for writing programs, for example Code:Block? I have got error
"D:\dev\d\test.d:1: module all cannot read file 'dfl\all.d'
:: === Build finished: 1 errors, 0 warnings ===
" |
Yes, you will need to tell your IDE or editor to look for imports (or includes) at C:\dmd\import or wherever else you installed the dfl source directory. |
|
Back to top |
|
|
|