FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help for a beginner, please...

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Damián



Joined: 06 Jan 2006
Posts: 5
Location: Buenos Aires, Argentina

PostPosted: Fri Jan 06, 2006 10:02 am    Post subject: help for a beginner, please... Reply with quote

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
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Fri Jan 06, 2006 10:42 am    Post subject: Re: help for a beginner, please... Reply with quote

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
View user's profile Send private message AIM Address
Damián



Joined: 06 Jan 2006
Posts: 5
Location: Buenos Aires, Argentina

PostPosted: Fri Jan 06, 2006 11:26 am    Post subject: Re: help for a beginner, please... Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Jan 06, 2006 12:03 pm    Post subject: Re: help for a beginner, please... Reply with quote

You say you have DFL version 0.9 but you need 0.9.1. Is this this issue?
Back to top
View user's profile Send private message
Damián



Joined: 06 Jan 2006
Posts: 5
Location: Buenos Aires, Argentina

PostPosted: Fri Jan 06, 2006 12:26 pm    Post subject: Re: help for a beginner, please... Reply with quote

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!! Smile
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Jan 06, 2006 1:13 pm    Post subject: Re: help for a beginner, please... Reply with quote

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
View user's profile Send private message
Damián



Joined: 06 Jan 2006
Posts: 5
Location: Buenos Aires, Argentina

PostPosted: Fri Jan 06, 2006 1:16 pm    Post subject: Re: help for a beginner, please... Reply with quote

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
View user's profile Send private message
Rohan



Joined: 05 Jan 2007
Posts: 22

PostPosted: Sun Dec 02, 2007 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Dec 04, 2007 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rohan



Joined: 05 Jan 2007
Posts: 22

PostPosted: Fri Dec 07, 2007 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Sat Dec 08, 2007 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group