Last update March 7, 2012

Error Messages /
Linker Errors



Difference (last change) (no other diffs, normal page display)

Deleted: 70,180d69
jam tangan
jam tangan murah
jam tangan kw
hostgator coupon
kata mutiara
Jasa SEO
EZido
RDAnet
pioneer deh-1300mp
asus a53e-xa2
asus tf101-b1
asus tf101-a1
asus n53sv-eh72
asus republic of gamers g74sx
asus acer a5250
acer chromebook ac700
asus asus 53u
lg infinia 55lw5600
Sonicview 360 premier
asus 7 cu ft freezer
asus 30 single wall oven
brother cs6000i sewing machine
brother 1034d serger
brother sewing machines
Yokohama Geolandar H/T-S
crib tent tots in mind
kidco peapod plus
foscam fi8910w
samsung pl120 review
gopro helmet cam
Canon SX130IS
powershot s100
ContourHD 1080p
canon vixia hf r21
digital picture frame
canon ef 50mm f1.4
canon ef 70-300mm review
wide angle lenses
moving comfort sports bra
moving comfort bra
womens argyle sweater
bebe dresses
ViewSonic VX2250WM
Le Pan TC 970
Apple MacBook Air MC965LL
Sennheiser CX 880
plantronics cs540
ultrasonic jewelry cleaner
Sennheiser RS120
bose quietcomfort 15 acoustic noise cancelling headphones
logitech harmony one remote
logitech harmony 900
sony mhc-ec69i
sony mhcec909ip
bose wave music system
sony htss380
logitech squeezebox touch
sony dvp-fx970
onkyo tx-nr509
onkyo tx - nr609
onkyo ht-s3400
energy 5.1 take classic home theater system
polk audio psw505
onkyo ht-s5400
onkyo tx-nr709
belkin pf60
onkyo ht-rc360
denon avr-1912
Yamaha YHT-S400BL
fujitsu scansnap s1500
brother hl-2270dw
epson workforce 545
hp laserjet p2055dn
bushnell 8mp trophy cam
toshiba 32c110u
panasonic viera tc-p60s30
VIZIO E220VA
hauppauge wintv dcr-2650
Acer AM3970-U5022
Acer AspireRevo AR3700-U3002
Dell Inspiron i570
Dell GX620
Gateway FX6860-UR20P
Western Digital My Passport Essential SE 1 TB USB 3.0
Fujitsu ScanSnap S1300
Epson Perfection V300
Fujitsu SCANSNAP S1100
NeatDesk Desktop Scanner and Digital Filing System
Epson WorkForce Pro GT-S50
Kodak P811BK
Epson Perfection V330
Viewsonic VX2453MH
Asus VE228H
ViewSonic VA2431WM
Samsung B2230
HP 2711x
ASUS ML228H
Epson PowerLite Home Cinema 8350
Optoma PK301
Epson EX7210
Epson EX5210
ViewSonic PJD5133
Acer X1161P
FAVI RioHD-LED-2
Epson EX3210
ViewSonic PJD6531w
Trinity 360 Breville 800JEXL
Skil 3320-02
Delta 46-460
Grizzly G0555
Delta 18-900L

Table of contents of this page
Error 42: Symbol Undefined   
You neglected to provide the linker with a needed binary file.   
You're using a old .lib file (created from a .dll) that's missing some definitions   
You're using a library that suffers from OPTLINK's template linking bug.   
You do not define the destructor, only give a prototype.   

Error 42: Symbol Undefined    

Many things could have caused this problem, but here are a few reasons and suggestion solutions. (This list is incomplete.)

You neglected to provide the linker with a needed binary file.    

Example:

Command line:

dmd month.d

Linker output:

month.obj(month)
Error 42: Symbol Undefined _D3jic6CallMeFAaZAa
month.obj(month)
Error 42: Symbol Undefined _D3jic9CallMeTooFAaZAa
--- errorlevel 2

Possible problem: The linker don't know where jic.obj is (note the jic in _D3jic6CallMeFAaZa and _D3jic9CallMeTooFAaZAa).

Solution: Add jic.obj or jic.d when invoking the compiler.

Try this

dmd jic.d
dmd month.d jic.obj
or this
dmd month.d jic.d

For a more detailed example: DsourceTopic:630

You're using a old .lib file (created from a .dll) that's missing some definitions    

The Win32 libraries distributed with D are very old, from 1995-1996, so anything introduced in Windows 98 and upwards won't be available.

You can either call functions at runtime with GetProcAddress, or link them in at compile time. To do the latter, you need to create a new library file defining the function you wish to import, like so:

1) Create a new text file, called "user32ex.def", with the following content:

LIBRARY user32
EXPORTS
2) Now list all the functions the linker says are undefined, eg
_GetWindowInfo@8 = GetWindowInfo
3) Go to DigitalMars:download/freecompiler.html and download the free "Basic Utilities" package, and unzip to c:\dm\bin or wherever your dm\bin directory is located. Then at the command line, cd to the directory you created the user32ex.def file (usually c:\dm\lib) and enter this:
c:\dm\bin\implib user32ex.lib user32ex.def
4) Add user32ex.lib to your dmd command line when compiling

(source: NG:digitalmars.D.learn/1781)

Another way to fix this particular problem is to create an alternative .lib file with implib and a better .def file, such as one of those available at DsourceProject:bindings/wiki/DefFiles ( NG:digitalmars.D.learn/1786).

Yet another approach is to try using the linkdef tool on the .dll: http://www.dprogramming.com/linkdef.php.

Another tool (called "coffimplib") seems like a more direct approach. See NG:digitalmars.D.announce/2405.

You're using a library that suffers from OPTLINK's template linking bug.    

See "Template Linker Problem" at DocComments/Template for an example and some suggestions.

You do not define the destructor, only give a prototype.    

Example:

class myClass {
  ~this();  // Should have a body! Like: ~this(){}
            // Remove it!
}


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: March 7, 2012 20:38 (diff))