digitalmars.D.learn - VisualD import
- Lemonfiend (5/5) Sep 11 2013 Now that VisualD has been officially accepted onto the
- Lemonfiend (24/24) Sep 11 2013 Oops, I forgot to say what I actually did.
- Rainer Schuetze (2/26) Sep 11 2013 Did you add the derelict library/libraries as linker inputs?
- Lemonfiend (5/42) Sep 11 2013 I haven't compiled derelict to a lib, I'm using the source
- Rainer Schuetze (7/47) Sep 11 2013 The compilation model of rdmd is not supported by Visual D. You might be...
- QAston (4/58) Sep 12 2013 You can also create a dub package and generate visuald project
Now that VisualD has been officially accepted onto the d-programming-language github, I decided to give it a try. And failed. Say I want to import derelict, how would I go about it? Thanks.
Sep 11 2013
Oops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: module main; import std.stdio; import derelict.opengl3.gl3; void main() { writeln("Hello D-World!"); } And the build output is a symbol undefined linker issue: ------ Rebuild All started: Project: Test, Configuration: Debug Win32 ------ Building Debug\Test.exe... OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Debug\Test.obj(Test) Error 42: Symbol Undefined _D8derelict7opengl33gl312__ModuleInfoZ Building Debug\Test.exe failed! Details saved as "file://C:\D\Test\Test\Debug\Test.buildlog.html" Build time: 3 s Solution build stopped. Build has been canceled.
Sep 11 2013
On 11.09.2013 18:13, Lemonfiend wrote:Oops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: module main; import std.stdio; import derelict.opengl3.gl3; void main() { writeln("Hello D-World!"); } And the build output is a symbol undefined linker issue: ------ Rebuild All started: Project: Test, Configuration: Debug Win32 ------ Building Debug\Test.exe... OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Debug\Test.obj(Test) Error 42: Symbol Undefined _D8derelict7opengl33gl312__ModuleInfoZ Building Debug\Test.exe failed! Details saved as "file://C:\D\Test\Test\Debug\Test.buildlog.html" Build time: 3 s Solution build stopped. Build has been canceled.Did you add the derelict library/libraries as linker inputs?
Sep 11 2013
On Wednesday, 11 September 2013 at 20:36:39 UTC, Rainer Schuetze wrote:On 11.09.2013 18:13, Lemonfiend wrote:I haven't compiled derelict to a lib, I'm using the source directly. With rdmd I can simply do -Ipath\to\derelict\sourceOops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: module main; import std.stdio; import derelict.opengl3.gl3; void main() { writeln("Hello D-World!"); } And the build output is a symbol undefined linker issue: ------ Rebuild All started: Project: Test, Configuration: Debug Win32 ------ Building Debug\Test.exe... OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Debug\Test.obj(Test) Error 42: Symbol Undefined _D8derelict7opengl33gl312__ModuleInfoZ Building Debug\Test.exe failed! Details saved as "file://C:\D\Test\Test\Debug\Test.buildlog.html" Build time: 3 s Solution build stopped. Build has been canceled.Did you add the derelict library/libraries as linker inputs?
Sep 11 2013
On 11.09.2013 23:42, Lemonfiend wrote:On Wednesday, 11 September 2013 at 20:36:39 UTC, Rainer Schuetze wrote:The compilation model of rdmd is not supported by Visual D. You might be able to use rdmd as "other compiler" in the project options with additional options "--build-only". On the other hand, you can also create a library from the project templates, then drag the source folder into the project to add all files. Then set a project dependency of your application to the library.On 11.09.2013 18:13, Lemonfiend wrote:I haven't compiled derelict to a lib, I'm using the source directly. With rdmd I can simply do -Ipath\to\derelict\sourceOops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: module main; import std.stdio; import derelict.opengl3.gl3; void main() { writeln("Hello D-World!"); } And the build output is a symbol undefined linker issue: ------ Rebuild All started: Project: Test, Configuration: Debug Win32 ------ Building Debug\Test.exe... OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Debug\Test.obj(Test) Error 42: Symbol Undefined _D8derelict7opengl33gl312__ModuleInfoZ Building Debug\Test.exe failed! Details saved as "file://C:\D\Test\Test\Debug\Test.buildlog.html" Build time: 3 s Solution build stopped. Build has been canceled.Did you add the derelict library/libraries as linker inputs?
Sep 11 2013
On Wednesday, 11 September 2013 at 22:15:07 UTC, Rainer Schuetze wrote:On 11.09.2013 23:42, Lemonfiend wrote:You can also create a dub package and generate visuald project from dub.On Wednesday, 11 September 2013 at 20:36:39 UTC, Rainer Schuetze wrote:The compilation model of rdmd is not supported by Visual D. You might be able to use rdmd as "other compiler" in the project options with additional options "--build-only". On the other hand, you can also create a library from the project templates, then drag the source folder into the project to add all files. Then set a project dependency of your application to the library.On 11.09.2013 18:13, Lemonfiend wrote:I haven't compiled derelict to a lib, I'm using the source directly. With rdmd I can simply do -Ipath\to\derelict\sourceOops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: module main; import std.stdio; import derelict.opengl3.gl3; void main() { writeln("Hello D-World!"); } And the build output is a symbol undefined linker issue: ------ Rebuild All started: Project: Test, Configuration: Debug Win32 ------ Building Debug\Test.exe... OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Debug\Test.obj(Test) Error 42: Symbol Undefined _D8derelict7opengl33gl312__ModuleInfoZ Building Debug\Test.exe failed! Details saved as "file://C:\D\Test\Test\Debug\Test.buildlog.html" Build time: 3 s Solution build stopped. Build has been canceled.Did you add the derelict library/libraries as linker inputs?
Sep 12 2013