Re: dmd + optlink Symbol Undefined _StretchDIBits@52

2019-05-03 Thread Dennis via Digitalmars-d-learn
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.

Re: dmd + optlink Symbol Undefined _StretchDIBits@52

2019-05-03 Thread Mike Parker via Digitalmars-d-learn
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

dmd + optlink Symbol Undefined _StretchDIBits@52

2019-05-02 Thread Joshua Hodkinson via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined __D3std7process10spawnShellFNeMAxaMxHAyaAyaEQBpQBo6ConfigMQBbMQzZCQClQCk3Pid

2019-03-02 Thread Robert M. Münch via Digitalmars-d-learn
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

Error 42: Symbol Undefined __D3std7process10spawnShellFNeMAxaMxHAyaAyaEQBpQBo6ConfigMQBbMQzZCQClQCk3Pid

2019-03-02 Thread Robert M. Münch via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined __lseeki64

2015-12-17 Thread Byron Heads via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined __lseeki64

2015-12-17 Thread Basile B. via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined __lseeki64

2015-12-16 Thread Byron Heads via Digitalmars-d-learn
) 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

Error 42: Symbol Undefined __lseeki64

2015-12-16 Thread Byron Heads via Digitalmars-d-learn
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.

Re: Error 42: Symbol Undefined __lseeki64

2015-12-16 Thread Byron Heads via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined __lseeki64

2015-12-16 Thread Byron Heads via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined __lseeki64

2015-12-16 Thread tcak via Digitalmars-d-learn
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

(this MyType) and interface: Symbol undefined

2014-10-08 Thread andre via Digitalmars-d-learn
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

Re: (this MyType) and interface: Symbol undefined

2014-10-08 Thread anonymous via Digitalmars-d-learn
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

DerelictAL Symbol undefined

2014-05-19 Thread Jack via Digitalmars-d-learn
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

Re: DerelictAL Symbol undefined

2014-05-19 Thread Mike Parker via Digitalmars-d-learn
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

Re: DerelictAL Symbol undefined

2014-05-19 Thread Jack via Digitalmars-d-learn
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.

Re: DerelictAL Symbol undefined

2014-05-19 Thread Jack via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined for asserts

2014-05-03 Thread FrankLike via Digitalmars-d-learn
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

Re: Error 42: Symbol Undefined for asserts

2014-05-03 Thread Andre Steenveld via Digitalmars-d-learn
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

Error 42: Symbol Undefined for asserts

2014-05-02 Thread Andre Steenveld via Digitalmars-d-learn
\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

Re: Error 42: Symbol Undefined for asserts

2014-05-02 Thread FrankLike via Digitalmars-d-learn
Maybe not add -L+somelib.lib

Re: Error 42: Symbol Undefined for asserts

2014-05-02 Thread Andre Steenveld via Digitalmars-d-learn
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)

Symbol undefined

2014-01-30 Thread Martijn Pot
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

Re: Symbol undefined

2014-01-30 Thread Ali Çehreli
: 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

Re: Symbol undefined

2014-01-30 Thread Andrej Mitrovic
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

Re: Symbol undefined

2014-01-30 Thread Andrej Mitrovic
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

Re: Symbol undefined

2014-01-30 Thread Andrej Mitrovic
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

Re: Symbol Undefined _D2rt12__ModuleInfoZ

2013-12-10 Thread Heinz
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.

Symbol Undefined _D2rt12__ModuleInfoZ

2013-12-09 Thread Carl Sturtivant
. === 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

Re: Symbol Undefined _D2rt12__ModuleInfoZ

2013-12-09 Thread Carl Sturtivant
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

Re: Linker error: Symbol Undefined

2013-10-13 Thread Elvis Zhou
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

Linker error: Symbol Undefined

2013-10-11 Thread Namespace
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

Re: Linker error: Symbol Undefined

2013-10-11 Thread Namespace
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.

Re: Linker error: Symbol Undefined

2013-10-11 Thread Brad Roberts
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.

Re: Linker error: Symbol Undefined

2013-10-11 Thread Namespace
Ok, that is what I wanted to hear.

Re: Linker error: Symbol Undefined

2013-10-11 Thread Namespace
://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

Re: Troubleshooting Linker error (Symbol Undefined)

2012-10-02 Thread Andrej Mitrovic
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.

Re: Troubleshooting Linker error (Symbol Undefined)

2012-10-01 Thread Jesse Phillips
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

Re: Troubleshooting Linker error (Symbol Undefined)

2012-10-01 Thread Richard Webb
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

Re: Troubleshooting Linker error (Symbol Undefined)

2012-10-01 Thread Jesse Phillips
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,

Troubleshooting Linker error (Symbol Undefined)

2012-09-30 Thread Jesse Phillips
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

Re: Troubleshooting Linker error (Symbol Undefined)

2012-09-30 Thread Andrej Mitrovic
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

Error 42 Symbol Undefined

2012-03-17 Thread Chris Pons
/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

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-27 Thread dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern
Thanks, this is it!

dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread Tal
() { return hello; } the error I get is: Error 42: Symbol Undefined _D1a4testFZAya` ---errorlevel 1 What is wrong ?

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread 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 ?

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread Joshua Reusch
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.

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread Tal
I'm quite new to this language, could you please provide a short snippet of code to clarify ?

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread Joshua Reusch
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

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread Joshua Reusch
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);

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-25 Thread Jakob Ovrum
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.

Symbol undefined due to import statement

2011-08-15 Thread Andre
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

Re: Symbol undefined due to import statement

2011-08-15 Thread torhu
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

Re: Symbol undefined due to import statement

2011-08-15 Thread Andre
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

Module Symbol Undefined Problem

2009-08-29 Thread Josh
) { Globals.Network.doSomething(); } maindialog.obj(maindialog) Error 42: Symbol Undefined _D6common7Globals7Globals7NetworkC7network12LoginNet work16NetworkInterface --- errorlevel 1 Hope someone can help me, Thanks!

Error 1: Previous Definition Different, Error 42: Symbol Undefined

2009-06-09 Thread Joel Christensen
\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

Re: my first link error: Error 42: Symbol Undefined __moduleUnitTests

2009-03-02 Thread Sergey Gromov
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

my first link error: Error 42: Symbol Undefined __moduleUnitTests

2009-02-27 Thread Fei
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?

Re: my first link error: Error 42: Symbol Undefined __moduleUnitTests

2009-02-27 Thread Jarrett Billingsley
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

Re: Symbol undefined on interface with public getter and package setter

2009-02-23 Thread Ellery Newcomer
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

Re: Symbol undefined on interface with public getter and package setter

2009-02-21 Thread TSalm
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.

Symbol undefined on interface with public getter and package setter

2009-02-20 Thread TSalm
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

Re: Symbol undefined on interface with public getter and package setter

2009-02-20 Thread TSalm
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

Re: Symbol undefined on interface with public getter and package setter

2009-02-20 Thread Jarrett Billingsley
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.

Re: Symbol undefined on interface with public getter and package setter

2009-02-20 Thread Jacob Carlborg
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

Re: Symbol undefined on interface with public getter and package setter

2009-02-20 Thread TSalm
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 ?

Re: Symbol undefined on interface with public getter and package setter

2009-02-20 Thread Daniel Keep
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