Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jhard

macrumors newbie
Original poster
Nov 27, 2017
1
0
Hey all, i need your help fix this issue i have been having. When ever i try to make this program it keeps returning errors such as Undefined symbols for architecture x86_64 "_CFAbsoluteTimeGetCurrent" referenced from Fl:: ...
I know its a linker error however i cant fix it i think the problem is with the make file. The libraries I'M working with is fltk and boost.I'm pretty new to makefiles and coding on a mac in general hence any help will be appreciated.
Below is the makefile file
Screen Shot 2017-11-24 at 11.54.12   AM.png
 
This works on my Machine. An XCode project will have no problem with this. fltk and boost are not in the XCode documentation. What are they? It sounds like you are trying to build a Mac application from the Terminal with a make file and assuming that the libraries you're using support the Core Foundation functions on the Mac when they don't'. Do yourself a big favor - don't do this. XCode is free.

Looking at the Wikipedia FLTK article I see OSX. But you don't say if this is an OS X project or iOS, which I don't see listed. FLTK is for GUIs so it probably doesn't include the CF function you want to use.

"Boost is a set of libraries for the C++ programming language that provide support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing." So Boost is used for functions that wouldn't include OS X Core Foundation calls. There should be some way to see if these are supported.
 
Last edited:
  • Like
Reactions: Jhard
The obvious thing I see is that there is no reference to link against the CoreFoundation framework here. Since it looks like you are using GCC, you want to look at the '-framework' argument. '-framework CoreFoundation' in this case.

That said, it assumes that by default, your copy of gcc knows where to find the system frameworks.
 
  • Like
Reactions: Jhard
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.