On Friday, 3 May 2019 at 06:20:37 UTC, Mike Parker wrote:
If you compile with -m32mscoff for 32-bit or -m64, DMD will use
the Microsoft linker and import libraries if you have Visual
Studio or the MS Build tools installed, and the LDC linker with
some import libraries from MinGW if you don’t.
On Thursday, 2 May 2019 at 22:54:20 UTC, Joshua Hodkinson wrote:
Hi everyone,
I am getting a linker error when compiling with dmd (v2.085.1)
when using StrechDIBits from the win32 api.
Error 42: Symbol Undefined _StretchDIBits@52
However with ldc (v1.15.0) the program compiles correctly
Hi everyone,
I am getting a linker error when compiling with dmd (v2.085.1)
when using StrechDIBits from the win32 api.
Error 42: Symbol Undefined _StretchDIBits@52
However with ldc (v1.15.0) the program compiles correctly.
Wondering if I've missed something here, or possibly identified
Ok, seems to be related to an older installed DMD 2.079.0, updating to
2.085.0 fixed the problem. Robert
On 2019-03-02 21:15:05 +, Robert M. Münch said:
Hi, trying to compile some stuff on Windows and get a bunch of
undefined symbol errors, but these look as some standard modules are
Hi, trying to compile some stuff on Windows and get a bunch of
undefined symbol errors, but these look as some standard modules are
missing.
See full output at: https://pastebin.com/e9xLrQAF
Any idea how this can happen? Or how to fix this?
--
Robert M. Münch
http://www.saphirion.com
smarter
On Thursday, 17 December 2015 at 04:11:56 UTC, tcak wrote:
I searched the function "__lseek64" under /usr/include/dmd"
with "grep -R __lseek64", but nothing is found. I work on Linux
64-bit. So, I guess it is either Windows related, or 32bit dmd
related. "lseek64" is found in "unistd.d", but
On Thursday, 17 December 2015 at 04:11:56 UTC, tcak wrote:
On Wednesday, 16 December 2015 at 18:30:41 UTC, Byron Heads
wrote:
On Wednesday, 16 December 2015 at 18:21:33 UTC, Byron Heads
wrote:
On Wednesday, 16 December 2015 at 18:14:35 UTC, Byron Heads
I searched the function "__lseek64" under
)
Error 42: Symbol Undefined __lseeki64
The code was compiling in 2.067. Not clear on where to look
to fix this issue.
I can reproduce with this code...
Windows dmd 2.069.2 32bit
import std.stream;
import std.exception;
// todo: add bzip support..
class GZipBufferedFile : BufferedFile
Seeing this issue on 2.069.2 using etc.c.zlib.
C:\d\dmd2\windows\bin\..\lib\phobos.lib(gzlib)
Error 42: Symbol Undefined __lseeki64
The code was compiling in 2.067. Not clear on where to look to
fix this issue.
On Wednesday, 16 December 2015 at 17:23:15 UTC, Byron Heads wrote:
Seeing this issue on 2.069.2 using etc.c.zlib.
C:\d\dmd2\windows\bin\..\lib\phobos.lib(gzlib)
Error 42: Symbol Undefined __lseeki64
The code was compiling in 2.067. Not clear on where to look to
fix this issue.
I can
On Wednesday, 16 December 2015 at 18:14:35 UTC, Byron Heads wrote:
On Wednesday, 16 December 2015 at 17:23:15 UTC, Byron Heads
wrote:
Seeing this issue on 2.069.2 using etc.c.zlib.
C:\d\dmd2\windows\bin\..\lib\phobos.lib(gzlib)
Error 42: Symbol Undefined __lseeki64
The code was compiling
On Wednesday, 16 December 2015 at 18:30:41 UTC, Byron Heads wrote:
On Wednesday, 16 December 2015 at 18:21:33 UTC, Byron Heads
wrote:
On Wednesday, 16 December 2015 at 18:14:35 UTC, Byron Heads
wrote:
[...]
Commenting out
gzclose(fpGZip);
allows it to compile..
Submitted reduced case as
Hi,
please consider following example. I want to acces class B by
interface I.
Method work should print the actual class (B).
The linker say:
Error 42: Symbol Undefined _D3app1I17__T4workTC3app1IZ4workMFZv
Is this is missing feature or even a bug?
Is there any other way to get the actual
On Wednesday, 8 October 2014 at 13:00:56 UTC, andre wrote:
Hi,
please consider following example. I want to acces class B by
interface I.
Method work should print the actual class (B).
The linker say:
Error 42: Symbol Undefined _D3app1I17__T4workTC3app1IZ4workMFZv
Is this is missing
Code: http://pastebin.com/pQjH3jRs
Error code is this:
Error 42: Symbol Undefined
_D3std7windows8syserror14sysErrorStringFNekZAya
--- errorlevel 1
I'm currently using Xamarin Studio and the compiler spewed this
error out.
I searched around and it said that it had to do with my phobos
On 5/19/2014 10:59 PM, Jack wrote:
Code: http://pastebin.com/pQjH3jRs
Error code is this:
Error 42: Symbol Undefined
_D3std7windows8syserror14sysErrorStringFNekZAya
--- errorlevel 1
I'm currently using Xamarin Studio and the compiler spewed this
error out.
I searched around and it said
On Monday, 19 May 2014 at 15:15:37 UTC, Mike Parker wrote:
Do you have multiple versions of DMD installed? Did you
recently replace an older version with a newer one?
I think this is the main issue. I'll try to reinstall dmd2 again.
On Tuesday, 20 May 2014 at 00:43:03 UTC, Jack wrote:
On Monday, 19 May 2014 at 15:15:37 UTC, Mike Parker wrote:
Do you have multiple versions of DMD installed? Did you
recently replace an older version with a newer one?
I think this is the main issue. I'll try to reinstall dmd2
again.
The
The problem I am running in to now is that Xamarin Studio now
launches Test.pdb.exe which doesn't seem to do anything at all.
Use visual d,it's simple for using pdb.exe
On Saturday, 3 May 2014 at 13:18:13 UTC, FrankLike wrote:
The problem I am running in to now is that Xamarin Studio now
launches Test.pdb.exe which doesn't seem to do anything at all.
Use visual d,it's simple for using pdb.exe
Which isn't really an option, Visual D is for Visual Studio
\Test.obj(Test)
Error 42: Symbol Undefined _D3rdx12Notification8__assertFiZv
obj\Unittest\Test.obj(Test)
Error 42: Symbol Undefined _D3rdx8Observer8__assertFiZv
obj\Unittest\Test.obj(Test)
Error 42: Symbol Undefined _D3rdx17AnonymousObserver8__assertFiZv
obj\Unittest\Test.obj(Test)
Error 42
Maybe not add -L+somelib.lib
I seem to have partially solved the problem myself. It seems that
when using the Unittest target makes the linker look in to the
/bin/Unittest directory even though project can be build using a
different target. (right click the solution - options -
configurations - Configuration Mappings)
I'm starting to use D out of curiousity. I've used both Eclipse +
DDT and Visual Studio + visualD and both give the same error in
my second test program (second to Hello World of course...) using
the Transmogrifier/CardboardBox example from TDPL :
Error 42: Symbol Undefined
:
Error 42: Symbol Undefined _D1a14Transmogrifier12transmogrifyMFZv
(void a.Transmogrifier.transmogrify())
Am I not linking module a (containing Transmogrifier and CardboardBox)?
How can I get either or both IDE's running my test program?
You must include a.d on the build line.
dmd a.d main.d
On Thursday, 30 January 2014 at 21:28:08 UTC, Martijn Pot wrote:
Error 42: Symbol Undefined
_D1a14Transmogrifier12transmogrifyMFZv (void
a.Transmogrifier.transmogrify())
Typically that means the function isn't implemented, e.g. this:
void transmogrify();
instead of this:
void transmogrify
On 1/30/14, Martijn Pot martijnpo...@gmail.com wrote:
Indeed, making them public solved the problem. Is there more
stuff in the book that isn't working?
Check the errata page[1], which coincidentally seems to be down. I'll CC Andrei.
[1]: http://erdani.com/tdpl/errata/index.php?title=Main_Page
On 1/30/14, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On 1/30/14, Martijn Pot martijnpo...@gmail.com wrote:
Indeed, making them public solved the problem. Is there more
stuff in the book that isn't working?
Check the errata page[1], which coincidentally seems to be down. I'll CC
I always have the same problems (ModuleInfoZ, initZ, etc) when
using import modules (.di files) wich i then have to include in
the compilation process to get rid of linking errors. I do not
know if this is the case.
.
===
dmd -d -oficonx.exe dmain.d dmemmgt.d dalc.d @diconx.link
iconx.def -L/map/noi
OPTLINK (R) for Win32 Release 8.00.13
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
iconx.obj(iconx)
Error 42: Symbol Undefined
file, while perfectly correct and containing
nothing that shouldn't be in a C header file (specifically, no
function definitions) nevertheless needed to be compiled into an
object and added to the eventual link. Doing so eliminated the
problem entirely.
Symbol Undefined _D2rt12__ModuleInfoZ
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
bar.obj(bar)
Error 42: Symbol Undefined _D3foo1A6__dtorMFZv
--- errorlevel 1
foo.d:
debug import std.stdio;
struct A {
public:
int id;
this(int id) {
debug writeln(CTor
Hey, I'm curious about this linker error:
OPTLINK (R) for Win32 Release 8.00.13
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
bar.obj(bar)
Error 42: Symbol Undefined _D3foo1A6__dtorMFZv
--- errorlevel 1
foo.d:
debug import
It's annoying and I don't get it. What is the problem of Optlink?
I tried version(unittest) instead of debug. It works then with
-debug, but if you compile with -unittest you get the same error.
reserved.
http://www.digitalmars.com/ctg/optlink.html
bar.obj(bar)
Error 42: Symbol Undefined _D3foo1A6__dtorMFZv
--- errorlevel 1
Without -debug or with 'debug' _in_ the DTor (before writeln) instead before
the DTor works fine.
Ok, that is what I wanted to hear.
://www.digitalmars.com/ctg/optlink.html
bar.obj(bar)
Error 42: Symbol Undefined _D3foo1A6__dtorMFZv
--- errorlevel 1
foo.d:
debug import std.stdio;
struct A {
public:
int id;
this(int id) {
debug writeln(CTor A with , id);
this.id = id;
}
debug
On 10/2/12, Jesse Phillips jessekphillip...@gmail.com wrote:
Thank you, making these changes did do the trick
As mentioned in the other thread I was wrong, it's extern(Windows),
but implib produced an import lib which didn't quite work. coffimplib
does the trick though.
On Monday, 1 October 2012 at 05:04:32 UTC, Andrej Mitrovic wrote:
Find oleaut32.dll in your Windows folder, and run implib on it:
$ implib oleaut32.lib oleaut32.dll /s
Thanks, I'll to play with this more because my first attempt did
not resolve the issue and instead has resulted in even more
On Monday, 1 October 2012 at 15:22:20 UTC, Jesse Phillips wrote:
On Monday, 1 October 2012 at 05:04:32 UTC, Andrej Mitrovic
wrote:
Find oleaut32.dll in your Windows folder, and run implib on it:
$ implib oleaut32.lib oleaut32.dll /s
Thanks, I'll to play with this more because my first
On Monday, 1 October 2012 at 05:04:32 UTC, Andrej Mitrovic wrote:
Find oleaut32.dll in your Windows folder, and run implib on it:
$ implib oleaut32.lib oleaut32.dll /s
Put the import lib in the same folder as the project and change
linkage to extern(C). It works for me this way.
Thank you,
I'm trying to identify what change has resulted in getting the
error:
Error 42: Symbol Undefined _VarCmp@16
I was doing my not so routine updates for the Juno Class
Libraries. This symbol is the VARIANT compare function provided
by oleaut32.lib on Windows. It is a very nice function
On 10/1/12, Jesse Phillips jessekphillip...@gmail.com wrote:
Error 42: Symbol Undefined _VarCmp@16
P.S. as soon as pointers are involved you don't need the full type
info of such a parameter to debug linker errors, so you can cut down
on code when reducing. For example if you had to match
/set function that interacts with the array that stores
the values for the vector. I've tried something like this:
alias Vector!(float, 2) vect2;
vect2 position;
position = vect2(0.0f, 0.0f);
However, both methods give the same error:
Error 42: Symbol Undefined pure nothrow @property @safe void
Thanks, this is it!
() {
return hello;
}
the error I get is:
Error 42: Symbol Undefined _D1a4testFZAya`
---errorlevel 1
What is wrong ?
I want to save the hInstance of WinMain so I would be able to use it later in
some
other module. So how do I accomplish that ?
Am 25.12.2011 22:37, schrieb Tal:
I want to save the hInstance of WinMain so I would be able to use it later in
some
other module. So how do I accomplish that ?
just define a public variable in the global scope.
I'm quite new to this language, could you please provide a short snippet of code
to clarify ?
Am 25.12.2011 23:26, schrieb Tal:
I'm quite new to this language, could you please provide a short snippet of code
to clarify ?
--- a.d:
import std.stdio;
import b;
void main() {
writeln(some_var from Module b: \, b.some_var, \);
}
--- b.d:
public string some_var = Hello, world!;
//you
Am 25.12.2011 22:37, schrieb Tal:
I want to save the hInstance of WinMain so I would be able to use it later in
some
other module. So how do I accomplish that ?
If you don't know: You can also get the HINSTANCE with
GetModuleHandle(NULL);
On Sunday, 25 December 2011 at 22:46:33 UTC, Joshua Reusch wrote:
public string some_var = Hello, world!;
It's important to note that public is the default access level
here.
is:
module net.http;
I compile the application with command:
dmd -IC:\Projects\Reusuable main.d
This works, but if I now edit the http.d file
and add an import statement like import std.stdio;
then the linker will output following error:
main.obj(main)
Error 42: Symbol Undefined
On 15.08.2011 10:15, Andre wrote:
...
I compile the application with command:
dmd -IC:\Projects\Reusuable main.d
This works, but if I now edit the http.d file
and add an import statement like import std.stdio;
then the linker will output following error:
main.obj(main)
Error 42: Symbol
Am Mon, 15 Aug 2011 10:24:38 +0200 schrieb torhu:
dmd -IC:\Projects\Reusuable main.d net\http.d
Hi torhu,
thanks a lot. This works.
Kind regards
Andre
)
{
Globals.Network.doSomething();
}
maindialog.obj(maindialog)
Error 42: Symbol Undefined _D6common7Globals7Globals7NetworkC7network12LoginNet
work16NetworkInterface
--- errorlevel 1
Hope someone can help me, Thanks!
\bin\..\lib\SNN.lib(cinit) Offset 08C2CH Record
Type 0090
Error 1: Previous Definition Different : _errno
main.obj(main)
Error 42: Symbol Undefined _D22TypeInfo_C3jec3snd3Snd6__initZ
Fri, 27 Feb 2009 20:37:56 -0500, Fei wrote:
I'm trying to compile my first d sample, winsamp.d, using dmd 2.025 for
windows.
dmd winsamp.d gdi32.lib
everything seem ok but I got a link error :
Error 42: Symbol Undefined __moduleUnitTests
what lib should I include for moduleUnitTetst
I'm trying to compile my first d sample, winsamp.d, using dmd 2.025 for windows.
dmd winsamp.d gdi32.lib
everything seem ok but I got a link error :
Error 42: Symbol Undefined __moduleUnitTests
what lib should I include for moduleUnitTetst?
On Fri, Feb 27, 2009 at 8:37 PM, Fei flyin...@gmail.com wrote:
I'm trying to compile my first d sample, winsamp.d, using dmd 2.025 for
windows.
dmd winsamp.d gdi32.lib
everything seem ok but I got a link error :
Error 42: Symbol Undefined __moduleUnitTests
what lib should I include
Daniel Keep wrote:
TSalm wrote:
I'm not sure but I think package is not virtual.
:-(
So there's really no way to have a method declared package in an
interface ?
You also can't have a private function in an interface. This once lost
me four days trying to figure out why my program wouldn't
Le Sat, 21 Feb 2009 04:00:42 +0100, Daniel Keep
daniel.keep.li...@gmail.com a écrit:
TSalm wrote:
I'm not sure but I think package is not virtual.
:-(
So there's really no way to have a method declared package in an
interface ?
You also can't have a private function in an interface.
Hello,
When I compile the code below, I've got the following error :
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
private_method_in_interface_file3.obj(private_method_in_interface_file3)
Error 42: Symbol Undefined
CODE --- */
Hello,
When I compile the code below, I've got the following error :
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
private_method_in_interface_file3.obj(private_method_in_interface_file3)
Error 42: Symbol Undefined
On Fri, Feb 20, 2009 at 3:56 PM, Jacob Carlborg d...@me.com wrote:
I'm not sure but I think package is not virtual.
The compiler should catch that then.
TSalm wrote:
Hello,
When I compile the code below, I've got the following error :
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
private_method_in_interface_file3.obj(private_method_in_interface_file3)
Error 42: Symbol Undefined
I'm not sure but I think package is not virtual.
:-(
So there's really no way to have a method declared package in an
interface ?
TSalm wrote:
I'm not sure but I think package is not virtual.
:-(
So there's really no way to have a method declared package in an
interface ?
You also can't have a private function in an interface. This once lost
me four days trying to figure out why my program wouldn't link despite
68 matches
Mail list logo