Home » Developing U++ » Mac OS » x86_64 compilation error under Catalina
x86_64 compilation error under Catalina [message #58027] |
Thu, 20 January 2022 20:32 |
|
forlano
Messages: 1202 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
with the latest U++ distro and Catalina I get this compilation error that seems related to
symbol x86_64
----- Report ( GUI CLANG SHARED POSIX BSD OSX ) (1 / 31)
----- RichEdit ( GUI CLANG SHARED POSIX BSD OSX ) (2 / 31)
----- GridCtrl ( GUI CLANG SHARED POSIX BSD OSX ) (3 / 31)
----- plugin/ftp ( GUI CLANG SHARED POSIX BSD OSX ) (4 / 31)
----- plugin/gif ( GUI CLANG SHARED POSIX BSD OSX ) (5 / 31)
----- PdfDraw ( GUI CLANG SHARED POSIX BSD OSX ) (6 / 31)
----- plugin/pcre ( GUI CLANG SHARED POSIX BSD OSX ) (7 / 31)
----- ZermeloRank ( GUI CLANG SHARED POSIX BSD OSX ) (8 / 31)
----- plugin/zip ( GUI CLANG SHARED POSIX BSD OSX ) (9 / 31)
----- RepGen ( GUI CLANG SHARED POSIX BSD OSX ) (10 / 31)
----- CtrlCore ( GUI CLANG SHARED POSIX BSD OSX ) (11 / 31)
----- QTFstr2 ( GUI CLANG SHARED POSIX BSD OSX ) (12 / 31)
----- OfficeAutomation ( GUI CLANG SHARED POSIX BSD OSX ) (13 / 31)
----- Core ( GUI CLANG SHARED POSIX BSD OSX ) (14 / 31)
----- Functions4U ( GUI CLANG SHARED POSIX BSD OSX ) (15 / 31)
----- CtrlLib ( GUI CLANG SHARED POSIX BSD OSX ) (16 / 31)
----- plugin/png ( GUI CLANG SHARED POSIX BSD OSX ) (17 / 31)
----- plugin/jpg ( GUI CLANG SHARED POSIX BSD OSX ) (18 / 31)
----- plugin/dbf ( GUI CLANG SHARED POSIX BSD OSX ) (19 / 31)
----- MySql ( GUI CLANG SHARED POSIX BSD OSX ) (20 / 31)
----- Core/SSL ( GUI CLANG SHARED POSIX BSD OSX ) (21 / 31)
----- RichText ( GUI CLANG SHARED POSIX BSD OSX ) (22 / 31)
----- Draw ( GUI CLANG SHARED POSIX BSD OSX ) (23 / 31)
----- Painter ( GUI CLANG SHARED POSIX BSD OSX ) (24 / 31)
----- plugin/bmp ( GUI CLANG SHARED POSIX BSD OSX ) (25 / 31)
----- plugin/bz2 ( GUI CLANG SHARED POSIX BSD OSX ) (26 / 31)
----- plugin/tif ( GUI CLANG SHARED POSIX BSD OSX ) (27 / 31)
----- plugin/lz4 ( GUI CLANG SHARED POSIX BSD OSX ) (28 / 31)
----- Sql ( GUI CLANG SHARED POSIX BSD OSX ) (29 / 31)
----- plugin/z ( GUI CLANG SHARED POSIX BSD OSX ) (30 / 31)
----- Vega82 ( GUI MAIN CLANG SHARED POSIX BSD OSX ) (31 / 31)
Linking...
Undefined symbols for architecture x86_64:
"Upp::ScanDouble(char const*)", referenced from:
Upp::IniDouble::Load() in Core.a(Ini.o)
Upp::XmlParser::Double(char const*, double) const in Core.a(XML.o)
void Upp::Jsonize<double>(Upp::JsonIO&, double&) in Core.a(JSON.o)
void Upp::XmlAttrLoad<double>(double&, Upp::String const&) in Core.a(Xmlize.o)
Upp::XmlIO Upp::XmlIO::Attr<double>(char const*, double&) in Core.a(Xmlize.o)
Upp::LoadJsonValue(Upp::XmlNode const&) in Core.a(Xmlize.o)
Upp::SvgParser::ParseGradient(Upp::XmlNode const&, bool) in Painter.a(SvgParser.o)
...
"Upp::ScanDouble(char const*, char const**)", referenced from:
Upp::StrDblValue(char const*) in Core.a(Convert.o)
Upp::UnitEdit::Read(double&, int&) const in RichEdit.a(UnitEdit.o)
"Upp::ScanDouble(char const*, char const**, bool)", referenced from:
VegaMain::ReadVegFile(Upp::String) in VegaMenus.o
VegaMain::ImportXml(Upp::String) in ImportExport.o
VegaMain::ImportTournamentTDF(Upp::String) in ImportExport.o
CreateEventDlg::SaveEvent() in EventManager.o
VegaTab4::PrintSelectedTextCB() in VegaTab4.o
RatingCalculator::roundFIDE(double) in RatingCalculator.o
RatingCalculator::RatingVariation(double, double, int) in RatingCalculator.o
...
"Upp::FormatDouble(double)", referenced from:
Upp::Stream& Upp::operator<<<float>(Upp::Stream&, float const&) in ImportExport.o
RoundData::SaveXmlExtendedFile() in Tournament.o
Upp::Stream& Upp::operator<<<float>(Upp::Stream&, float const&) in Tournament.o
Upp::Stream& Upp::operator<<<double>(Upp::Stream&, double const&) in Tournament.o
RoundData::SavePairsFileQTFnew(int) in Tournament.o
RoundData::RankFederation(int, int) in Tournament.o
ColoredRow::Set(int, int, int, int, int, float, float, int, int) in ImproveColors.o
...
"Upp::FormatDouble(double, int, unsigned int)", referenced from:
Upp::DoubleFormatter(Upp::Formatting const&) in Core.a(Format.o)
Upp::RealFormatter(Upp::Formatting const&) in Core.a(Format.o)
Upp::MySqlConnection::SetParam(int, Upp::Value const&) in MySql.a(MySql.o)
Upp::LanguageInfo::FormatDouble(double, int, int, int) const in Core.a(LangInfo.o)
Upp::PdfDraw::Finish(Upp::PdfSignatureInfo const*) in PdfDraw.a(PdfDraw.o)
Upp::SqlFormat(double) in Sql.a(SqlCode.o)
Upp::SqlFormat(Upp::Value const&) in Sql.a(SqlCode.o)
...
"Upp::DrawSmartText(Upp::Draw&, int, int, int, char const*, Upp::Font, Upp::Color, int)", referenced from:
OptionImage::Paint(Upp::Draw&) in VegaTab1.o
(maybe you meant: Upp::DrawSmartText(Upp::Draw&, int, int, int, char const*, Upp::Font, Upp::Color, int, Upp::Color))
"Upp::FormatDoubleN(double)", referenced from:
Upp::Point_<double>::ToString() const in Core.a(ValueUtil.o)
Upp::Size_<double>::ToString() const in Core.a(ValueUtil.o)
Upp::IniDouble::ToString() const in Core.a(Ini.o)
Upp::TimeStop::ToString() const in Core.a(Util.o)
Upp::Size_<double>::ToString() const in Draw.a(Draw.o)
Upp::SvoFn<double>::AsString(void const*) in Core.a(Value.o)
Upp::String Upp::AsString<std::__1::complex<double> >(std::__1::complex<double> const&) in Core.a(Value.o)
...
"Upp::FormatInteger(int)", referenced from:
SaveConfigFile() in main.o
VegaMain::GetSplitterSize() in main.o
VegaMain::DeleteRoundCB() in VegaMenus.o
VegaMain::DownloadPlayer() in VegaMenus.o
VegaMain::Upset(int) in VegaMenus.o
VegaMain::CheckName() in VegaMenus.o
VegaMain::AddImportedPlayer1() in VegaMenus.o
...
"Upp::Atof(char const*)", referenced from:
Upp::RTFParser::ReadField(char const*) in CtrlCore.a(ParseRTF.o)
Upp::GetTransformArgs(Upp::String, char const*) in Painter.a(SvgUtil.o)
"Upp::CParser::ReadDouble()", referenced from:
Upp::ParseJSON(Upp::CParser&) in Core.a(JSON.o)
Upp::StringToDash(Upp::String const&, double&) in Painter.a(Painter.o)
Upp::SvgParser::Poly(Upp::XmlNode const&, bool) in Painter.a(SvgParser.o)
Upp::ReadNumber(Upp::CParser&) in Painter.a(SvgParser.o)
Upp::GetSvgViewBox(Upp::String const&) in Painter.a(SvgParser.o)
Upp::Painter::Path(Upp::CParser&) in Painter.a(PainterPath.o)
Upp::SvgParser::Transform(char const*) in Painter.a(SvgStyle.o)
...
"Upp::FormatE(double, int, unsigned int)", referenced from:
Upp::DbfStream::Field::Format(Upp::Value, unsigned char) const in dbf.a(dbf.o)
"Upp::FormatF(double, int, unsigned int)", referenced from:
Upp::PdfDraw::DrawEllipseOp(Upp::Rect_<int> const&, Upp::Color, int, Upp::Color) in PdfDraw.a(PdfDraw.o)
Upp::DbfStream::Field::Format(Upp::Value, unsigned char) const in dbf.a(dbf.o)
"Upp::FormatG(double, int, unsigned int)", referenced from:
Upp::AsString(double, int) in Core.a(mathutil.o)
Upp::AsJSON(Upp::Value const&, Upp::String const&, bool) in Core.a(JSON.o)
Upp::String Upp::XmlAttrStore<double>(double const&) in Core.a(Xmlize.o)
Upp::XmlIO Upp::XmlIO::Attr<double>(char const*, double&) in Core.a(Xmlize.o)
"Upp::String0::Set0(char const*, int)", referenced from:
ReadConfigFile() in main.o
GuiMainFn_() in main.o
Vega8Img::Find(char const*) in VegaMenus.o
VegaMain::NewTournament() in VegaMenus.o
VegaMain::OpenTournament(int) in VegaMenus.o
VegaMain::SaveTournament() in VegaMenus.o
VegaMain::Import(int) in VegaMenus.o
Does anybody know how to fix it?
Thanks,
Luigi
PS: the latest theide cannot run under Mojave.
|
|
|
|
|
|
|
Re: x86_64 compilation error under Catalina [message #59327 is a reply to message #59267] |
Thu, 15 December 2022 14:48 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
Novo wrote on Fri, 09 December 2022 05:04Compilation for MacOS is currently broken.
I am sorry. I had not noticed and did not expect that, by default, with just one flag "GUI", theide compiles the OSX version...
On the other hand, UPP_VERSION 0x20220100 with GUI COCOA flags gives me:
error: expected identifier
expanded from macro #define TCP_NODELAY 0x01,
Any ideas how to fix this?
Rename TCP_NODELAY?
P.S. Adding line #undef TCP_NODELAY
in Core/Core.h like this:
#ifdef __APPLE__
#undef TCP_NODELAY
#endif
enum
{
INVALID_SOCKET = -1,
TCP_NODELAY = 1,
SD_RECEIVE = 0,
SD_SEND = 1,
SD_BOTH = 2,
};
restores compiling for the mentioned version. Is that ok? what extra flag do we need to enclose this undef?
#ifdef __APPLE__ is ok?
P.P.S. Bad news after all... I have updated from git and now
it is the same problem like on Linux X11:
duplicate member
static int WndCaretTime;
And I am at loss with UPP_VERSION... It shows the same..
[Updated on: Thu, 15 December 2022 20:38] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Oct 04 12:59:09 CEST 2024
Total time taken to generate the page: 0.03326 seconds
|