Phobos problem - compilation

AnIHiL aanihill at hotmail.com
Thu Nov 22 16:47:28 PST 2007


Ok at last I figure it out :-)

If someone have problem with 
> OPTLINK (R) for Win32  Release 8.00.1
> Copyright (C) Digital Mars 1989-2004  All rights reserved.
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegQueryValueExA at 24
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegCloseKey at 4
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegQueryInfoKeyA at 48
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegCreateKeyExA at 36
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegOpenKeyExA at 20
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegOpenKeyA at 12
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegDeleteKeyA at 8
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegSetValueExA at 24
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegDeleteValueA at 8
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegFlushKey at 4
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegEnumKeyExA at 32
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegEnumValueA at 32
> --- errorlevel 12

than include library advapi32.lib from: ..\dm\lib\advapi32.lib

AnIHiL Wrote:

> Hello,
> 
> I copy one of the examples from GtkD project site:
> 
> import gtk.MainWindow;
> import gtk.Label;
> import gtk.GtkD;
> 
> void main(char[][] args)
> {
> 	GtkD.init(args);
> 	MainWindow win = new MainWindow("Hello World");
> 	win.setDefaultSize(200, 100);
> 	win.add(new Label("Hello World"));
> 	win.showAll();
> 
> 	GtkD.main();
> }
> 
> I use CodeBlock to compile it but I have an error. This is log from compilation:
> 
> -------------- Build: Debug in asd ---------------
> 
> Compiling: hello.d
> Linking console executable: bin\Debug\asd.exe
> D:\D\dmd\bin\..\..\dm\bin\link.exe obj\Debug\hello,bin\Debug\asd.exe,,D:\D\dmd\lib\phobos.lib+D:\D\dsss-0.73-dmd-win\lib\DD-atk.lib+D:\D\dsss-0.73-dmd-win\lib\DD-cairoLib.lib+D:\D\dsss-0.73-dmd-win\lib\DD-gdk.lib+D:\D\dsss-0.73-dmd-win\lib\DD-gdkpixbuf.lib+D:\D\dsss-0.73-dmd-win\lib\DD-glade.lib+D:\D\dsss-0.73-dmd-win\lib\DD-glib.lib+D:\D\dsss-0.73-dmd-win\lib\DD-gobject.lib+D:\D\dsss-0.73-dmd-win\lib\DD-gthread.lib+D:\D\dsss-0.73-dmd-win\lib\DD-gtk.lib+D:\D\dsss-0.73-dmd-win\lib\DD-gtkc.lib+D:\D\dsss-0.73-dmd-win\lib\DD-pango.lib+user32+kernel32/noi;
> OPTLINK (R) for Win32  Release 8.00.1
> Copyright (C) Digital Mars 1989-2004  All rights reserved.
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegQueryValueExA at 24
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegCloseKey at 4
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegQueryInfoKeyA at 48
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegCreateKeyExA at 36
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegOpenKeyExA at 20
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegOpenKeyA at 12
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegDeleteKeyA at 8
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegSetValueExA at 24
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegDeleteValueA at 8
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegFlushKey at 4
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegEnumKeyExA at 32
> D:\D\dmd\lib\phobos.lib(registry) 
>  Error 42: Symbol Undefined _RegEnumValueA at 32
> --- errorlevel 12
> Process terminated with status 12 (0 minutes, 0 seconds)
> 12 errors, 0 warnings
> 
> This is my sc.ini file:
> [Version]
> version=7.51 Build 020
> 
> [Environment]
> LIB=D:\d\dm\lib;D:\d\dmd\lib
> DFLAGS="-I%@P%\..\src\phobos" -Id:\d\dmd\import -Id:\D\dsss-0.73-dmd-win\include\d
> LINKCMD=%@P%\..\..\dm\bin\link.exe
>  
> I already added in CodeBlock GtkD librarys and phobos library but this code doesn't work. 
> 
> Can someone help me ?
> 



More information about the Digitalmars-d-learn mailing list