ld.exe cannot find...

New to FreeBASIC? Post your questions here.
caffey
Posts: 2
Joined: Nov 06, 2017 8:25

ld.exe cannot find...

Postby caffey » Nov 07, 2017 1:57

I'm a noob to FreeBASIC and I've been following the tutorial on this website
http://zetcode.com/gui/fbgtk/

but I keep getting these compile errors and I'm just not sure what I am doing wrong

C:\FreeBASIC\fbc -s console "firstWindow.bas"
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgtk-win32-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgdk-win32-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgio-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgobject-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lglib-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgthread-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgmodule-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lcairo
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lpango-1.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lgdk_pixbuf-2.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -lpangocairo-1.0
C:\FreeBASIC\bin\win64\ld.exe: cannot find -latk-1.0

Build error(s)

Any help would be greatly appreciated
MrSwiss
Posts: 3213
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: ld.exe cannot find...

Postby MrSwiss » Nov 09, 2017 21:10

Instead of asking "the obvious", read current threads, dealing with exactly the same "problem".
It is a major problem, that beginners think, they don't need to read the FB-Manual.
(A lot of effort has gone into that, to help avoid, exactly this kind of regularly, reoccurring question(s).)
wxWigets ...
Libgobject ...
St_W
Posts: 1470
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: ld.exe cannot find...

Postby St_W » Nov 09, 2017 21:56

Welcome to the forums and sorry for the a bit harsh answer - it's because we get that very same question quite often recently.

Short answer: those libraries ("gtk-win32-2.0.dll", ...) are missing, invalid or cannot be found; you need to download the correct ones (64-bit as far as I can see) and put them somewhere where the linker can find them (e.g. your application's directory).
For more information see the linked threads in the previous answer and especially the documentation.
nimdays
Posts: 219
Joined: May 29, 2014 22:01
Location: ID

Re: ld.exe cannot find...

Postby nimdays » Nov 10, 2017 2:27

@caffey, You can download gtk libs here
caffey
Posts: 2
Joined: Nov 06, 2017 8:25

Re: ld.exe cannot find...

Postby caffey » Nov 10, 2017 6:39

Thanks so much for the help

St_W wrote:Welcome to the forums and sorry for the a bit harsh answer - it's because we get that very same question quite often recently.

Short answer: those libraries ("gtk-win32-2.0.dll", ...) are missing, invalid or cannot be found; you need to download the correct ones (64-bit as far as I can see) and put them somewhere where the linker can find them (e.g. your application's directory).

For more information see the linked threads in the previous answer and especially the documentation.


Thanks for the link
nimdays wrote:@caffey, You can download gtk libs here
St_W
Posts: 1470
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: ld.exe cannot find...

Postby St_W » Nov 16, 2017 15:06

I've added some additional text and links to the existing FAQ entry and the referred pages
https://freebasic.net/wiki/wikka.php?wa ... FAQ#item25
That could be used as a quick answer for questions like the one in this thread.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 1 guest