View previous topic :: View next topic |
Author |
Message |
Mitu
Joined: 22 Sep 2009 Posts: 59 Location: Poland
|
Posted: Mon Dec 14, 2009 7:46 am Post subject: Linking problem with SourceView |
|
|
Hello. I'm trying to compile the program using SorceView, but it ends up like this:
http://pastebin.com/d78f5772
What should I do? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Mon Dec 14, 2009 1:09 pm Post subject: |
|
|
The first few errors would suggest the main function is missing.
And i see a few lines like this:
Quote: | mitu@kubuntu-desktop:~/Pulpit$ dmd main.d |
If you are calling dmd directly you will heve to tell it where it can find the source of gtk/gtksourceview and which libraries to link with.
You will end up with something like this:
Quote: | dmd main.d -Ipath/to/src -Ipath/to/srcsv -L-Lpath/to/libs -L-lgtkd -L-lgtkdsv -L-ldl |
It's possible that the line i saw is not you calling dmd directly, because i find it odd it tries to link the app while it can't compile it, since it cant find the souce for gtksourceview. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Mon Dec 14, 2009 1:12 pm Post subject: |
|
|
Quote: | main.d(2): Error: module SourceView cannot read file 'sv/SourceView.d' |
You should import gsv.SourceView instead of sv.SourceView. |
|
Back to top |
|
|
Mitu
Joined: 22 Sep 2009 Posts: 59 Location: Poland
|
Posted: Tue Dec 15, 2009 8:38 am Post subject: |
|
|
Well, I've put all these paths into the dmd.conf file.
The log I've put is a bit wrong, first ~20 lines shouldn't be there (they're from previous tries)
The log seems to be removed from server, I'm pasting it again (but now it's correct):
http://pastebin.com/d130321a8
It looks like the SourceView can't find the rest od gtkD files... |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Dec 15, 2009 12:58 pm Post subject: |
|
|
Try changing the order the libraries are listed in in the config file.
Put gtkdsv before gtkd. |
|
Back to top |
|
|
Mitu
Joined: 22 Sep 2009 Posts: 59 Location: Poland
|
Posted: Wed Dec 16, 2009 10:16 am Post subject: |
|
|
Cheers
Thank you very much, changing the order made it work. |
|
Back to top |
|
|
|