Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Compile/load problem with graphics library
- Date: Sun, 5 Aug 2018 09:49:37 +0900
- From: Joe Foran <joeforan@example.com>
- Subject: Re: [tlug] Compile/load problem with graphics library
- References: <fe5a3e36-1068-ab9b-e233-66f92f81b522@imaginatorium.org>
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Hi Brian,
The linker is giving this error because it cannot find the functions in question.
The order in which the object files are provided to the linker is very important.
They should be specified in order of most specific (application object files)
to most general (library object files).
In the makefile you provide on the forum thread, you have lines like
$(CC) $(LDFLAGS) test.o cutoutbg.o boundingbox.o -o $@
You will need to do this everywhere LDFLAGS is referenced.The LDFLAGS variable contains the necessary information about the ImageMagick library files and should come after the application object files. i.e.
$(CC) test.o cutoutbg.o boundingbox.o
$(LDFLAGS) -o $@
Does this help?
Joe
On 2018/08/05 3:55, Brian Chandler wrote:
Hello! I'm looking for help with a software problem. I have a small C++ program to do some basic image manipulation (basic, but very specific), using the Imagemagick++ library; it ran on my webserver (at pair.com hosting) for years, but stopped because of an "upgrade". I cannot now recompile, cannot really understand the problem, and can't seem to get any help either from pair.com or the Imagemagick forum. Here's my question in full: https://www.imagemagick.org/discourse-server/viewtopic.php?f=23&t=34332&sid=364f3a5fa340bcbb3d0057542983ff5f It looks as though the loader has some problem. Unfortunately the forum responses I've received don't suggest to me that the helpers know any more than I do. Obviously the best answer is a change to the makefile, or similar, that makes the library work again. But failing that, I would try to install the library in my own server space, giving up on the one provided by Pair.com. The worst option I suppose is to rewrite the program to use something else, but I hope it doesn't come to that. Can anyone suggest where to start? If I need to provide other information, then sorry, but just say. Thanks! Brian Chandler
- Follow-Ups:
- Re: [tlug] Compile/load problem with graphics library
- From: Brian Chandler
- References:
- [tlug] Compile/load problem with graphics library
- From: Brian Chandler
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Compile/load problem with graphics library
- Next by Date: [tlug] Free: 1080p Project With Bad Colour
- Previous by thread: Re: [tlug] Compile/load problem with graphics library
- Next by thread: Re: [tlug] Compile/load problem with graphics library
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links