www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - A GtkD issue

reply pascal111 <judas.the.messiah.111 gmail.com> writes:
I was following instructions from this link 
https://gtkdcoding.com/2019/01/11/0000-introduction-to-gtkDcoding.html to setup
GtkD, and tried to run the example with VSCode and found these errors:

"a virtual call inside a constructor may lead to unexpected 
results in the derived classes" in "greeting()" in:

'''D

this()
	{
		super(title);
		addOnDestroy(&quitApp);
		
		showAll();
		
		greeting();
		
	} // this()

'''

I found this also:
"Error: there is no registered task type 'rdmd'. Did you miss 
installing an extension that provides a corresponding task 
provider?"

And this:

"lld-link: error: undefined symbol: __D3gio5FileT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio11FileMonitor12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio6MountT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio6DriveT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio7VolumeT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio8AppInfoT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio16AppLaunchContext12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio7ActionT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D3gio11Application12__ModuleInfoZ)
lld-link: error: undefined symbol: __D7gobject11TypePluginT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-3DA0262365BDE4A77C34FE7371395AD2\objs\vdtest01.exe.obj:(__D7gobject4Type12__ModuleInfoZ)
Error: linker exited with status 1 * The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command & 'rdmd' 'd:\Documents\My Projects\D\vdtest01.d'" terminated with exit code: 1. "
Aug 12 2022
parent reply frame <frame86 live.com> writes:
On Saturday, 13 August 2022 at 01:14:09 UTC, pascal111 wrote:
 I was following instructions from this link 
 https://gtkdcoding.com/2019/01/11/0000-introduction-to-gtkDcoding.html to
setup GtkD, and tried to run the example with VSCode and found these errors:
How do you start compiling in VsCode? Are you using an extension?
  \*  The terminal process 
 "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 
 -Command & 'rdmd' 'd:\Documents\My Projects\D\vdtest01.d'" 
 terminated with exit code: 1. "
Try to execute commands in legacy cmd.exe, not powershell. I used it in a small project a year ago, it works fine.
Aug 15 2022
parent reply pascal111 <judas.the.messiah.111 gmail.com> writes:
On Monday, 15 August 2022 at 17:33:25 UTC, frame wrote:
 On Saturday, 13 August 2022 at 01:14:09 UTC, pascal111 wrote:
 I was following instructions from this link 
 https://gtkdcoding.com/2019/01/11/0000-introduction-to-gtkDcoding.html to
setup GtkD, and tried to run the example with VSCode and found these errors:
How do you start compiling in VsCode? Are you using an extension?
  \*  The terminal process 
 "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 
 -Command & 'rdmd' 'd:\Documents\My Projects\D\vdtest01.d'" 
 terminated with exit code: 1. "
Try to execute commands in legacy cmd.exe, not powershell. I used it in a small project a year ago, it works fine.
Now, I used cmd.exe and found this new errors: "lld-link: error: undefined symbol: __D3gio5FileT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio11FileMonitor12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio6MountT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio6DriveT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio7VolumeT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio8AppInfoT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio22ApplicationCommandLine12__ModuleInfoZ)
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio16AppLaunchContext12__ModuleInfoZ)
lld-link: error: undefined symbol: __D3gio7ActionT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D3gio11Application12__ModuleInfoZ)
lld-link: error: undefined symbol: __D7gobject11TypePluginT12__ModuleInfoZ
 referenced by 
 C:\Users\PASCAL~1\AppData\Local\Temp\.rdmd\rdmd-vdtest01.d-2F84C696987A5BD731F07ACFE32B2867\objs\vdtest01.exe.obj:(__D7gobject4Type12__ModuleInfoZ)
Error: linker exited with status 1"
Aug 18 2022
parent frame <frame86 live.com> writes:
On Friday, 19 August 2022 at 00:40:40 UTC, pascal111 wrote:

 Now, I used cmd.exe and found this new errors:

 "lld-link: error: undefined symbol: __D3gio5FileT12__ModuleInfoZ
 referenced by
If you don't post the exact command you are using we can just assume what you did wrong: The linker is unable to find the library. You will need to specify it via `-L` command line switch. If your environment setup fails to determine the paths, you can always specify it raw: ``` rdmd -m64 -I=src\gtkd -L=libs\gtkd.lib app.d ``` where: `src` contains the `gtkd` folder copied from `GtkD-3.9\generated` `libs` contains the file `gtkd.lib` created by the `GtkD-3.9\Build.d` output
Aug 18 2022