|
|
Re: Can forte be compile under macos? [message #1821122 is a reply to message #1821015] |
Thu, 06 February 2020 03:10 |
joy woo Messages: 198 Registered: May 2019 |
Senior Member |
|
|
but when i complie the latest version of forte, it failed
Undefined symbols for architecture x86_64:
"timespecAdd(timespec const*, timespec const*, timespec*)", referenced from:
CPCTimerHandler::run() in pctimeha.o
"timespecSub(timespec const*, timespec const*, timespec*)", referenced from:
CPCTimerHandler::run() in pctimeha.o
"timespecLessThan(timespec const*, timespec const*)", referenced from:
CPCTimerHandler::run() in pctimeha.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing Recent Issues
: "timespecAdd(timespec const*, timespec const*, timespec*)", referenced from:
|
|
|
|
|
|
|
Re: Can forte be compile under macos? [message #1841430 is a reply to message #1841415] |
Sun, 16 May 2021 14:38 |
|
Hi,
can you provide us the full compile output. I tried to google a bit with what you posted above and I can not find a cause. Most probably there are some compiler switches that need to be changed. But without more information I have a hard time finding these.
Has anybody tried compiling 4diac FORTE with llvm/clang recently?
|
|
|
|
Re: Can forte be compile under macos? [message #1841452 is a reply to message #1841450] |
Mon, 17 May 2021 12:48 |
|
thanks for the full output. It could be that pthread_t is defined differently on MacOS. Could you try changing the line 31 of src/arch/posix/forte_thread.h to
class CPosixThread : public forte::arch::CThreadBase<pthread_t, 0, forte::arch::EmptyThreadDeletePolicy> {
And thanks for your kind words.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05661 seconds