Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » FindFile range-loop support
FindFile range-loop support [message #55589] Mon, 23 November 2020 10:53 Go to next message
mirek is currently offline  mirek
Messages: 13040
Registered: November 2005
Ultimate Member
I have added rudimentaty iterator to FindFile so that it is now possible to write:

	for(const FindFile& ff : FindFile("d:/xxx/*.*"))
		DDUMP(ff.GetPath());
Re: FindFile range-loop support [message #55607 is a reply to message #55589] Mon, 23 November 2020 23:06 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 823
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello Mirek,

Good news! Migrating to newer standards with easier stbtax are always valuable addition:

If you do not want to type FindFile you could replace with auto:
for(const auto& ff : FindFile("d:/xxx/*.*"))
    DDUMP(ff.GetPath());


Klugier


Ultimate++ - one framework to rule them all.
Re: FindFile range-loop support [message #55610 is a reply to message #55607] Mon, 23 November 2020 23:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13040
Registered: November 2005
Ultimate Member
Klugier wrote on Mon, 23 November 2020 23:06
Hello Mirek,

Good news! Migrating to newer standards with easier stbtax are always valuable addition:

If you do not want to type FindFile you could replace with auto:
for(const auto& ff : FindFile("d:/xxx/*.*"))
    DDUMP(ff.GetPath());


Klugier


Sure. But I want to Smile

Mirek
Re: FindFile range-loop support [message #55631 is a reply to message #55610] Thu, 26 November 2020 09:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13040
Registered: November 2005
Ultimate Member
That said, I haved now provided operator++ (equivalent to Next call), which allows

for(FindFile ff("d:/xxx/*.*"); ff; ++ff)


which is nice as well... Smile
Re: FindFile range-loop support [message #55645 is a reply to message #55631] Fri, 27 November 2020 08:37 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3248
Registered: August 2008
Senior Veteran
I have just included it in one project. Two lines of code less Smile per FindFile loop.

Best regards
Iñaki
Re: FindFile range-loop support [message #56044 is a reply to message #55645] Mon, 18 January 2021 14:27 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3248
Registered: August 2008
Senior Veteran
Ups, I do not advice to use
for(const auto& ff : FindFile("d:/xxx/*.txt"))
flavour, as in case that no file complies with wildcards, it enters once the for() with a corrupted ff, giving sometimes nasty results.

However
for(FindFile ff("d:/xxx/*.txt"); ff; ++ff)
doesn't enter the for if no file complies.


Best regards
Iñaki
Re: FindFile range-loop support [message #56045 is a reply to message #56044] Mon, 18 January 2021 15:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13040
Registered: November 2005
Ultimate Member
Thanks, fixed.
Re: FindFile range-loop support [message #56046 is a reply to message #56045] Mon, 18 January 2021 17:29 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3248
Registered: August 2008
Senior Veteran
Excellent. Today I have learned something about Iterator.

As a curiosity, I noticed the problem because sometimes a function of a DLL failed.
That function, which uses FindFile, never failed in a normal program in DEBUG or RELEASE mode.


Best regards
Iñaki
Re: FindFile range-loop support [message #56047 is a reply to message #56045] Mon, 18 January 2021 20:24 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1138
Registered: December 2006
Senior Contributor
mirek wrote on Mon, 18 January 2021 09:46
Thanks, fixed.

After the last change:
./umk examples SkylarkUpload CLANG -bus
Linking...
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `ProgressHandler(int, Upp::Http&, int)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:18: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:19: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:35: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:43: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:61: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:62: more undefined references to `Upp::Http::SessionSet(char const*, Upp::Value const&)' follow
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_76_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:76: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Home(Upp::Http&)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:80: undefined reference to `Upp::Http::NewSessionId()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:85: undefined reference to `Upp::Http::RenderResult(char const*)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Upload()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:6: undefined reference to `Upp::SkylarkApp::TheApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_88_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:88: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Default(Upp::Http&)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:90: undefined reference to `Upp::Http::Redirect(Upp::HandlerId const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_93_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:93: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_105_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:105: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Progress(Upp::Http&)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:108: undefined reference to `Upp::Http::Content(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `SkylarkUpload':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:9: undefined reference to `Upp::SkylarkApp::SkylarkApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:20: undefined reference to `Upp::SkylarkApp::~SkylarkApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `ConsoleMainFn_()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:26: undefined reference to `Upp::Ini::skylark_log'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:31: undefined reference to `Upp::SkylarkApp::Run()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `~SkylarkUpload':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.h:8: undefined reference to `Upp::SkylarkApp::~SkylarkApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x10): undefined reference to `Upp::SkylarkApp::SigUsr1()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x18): undefined reference to `Upp::SkylarkApp::NotFound(Upp::Http&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x20): undefined reference to `Upp::SkylarkApp::SqlError(Upp::Http&, Upp::SqlExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x28): undefined reference to `Upp::SkylarkApp::InternalError(Upp::Http&, Upp::Exc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x30): undefined reference to `Upp::SkylarkApp::Unauthorized(Upp::Http&, Upp::AuthExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x38): undefined reference to `Upp::SkylarkApp::BadRequest(Upp::Http&, Upp::BadRequestExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x40): undefined reference to `Upp::SkylarkApp::TemplateError(Upp::Http&, Upp::TemplateExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x48): undefined reference to `Upp::SkylarkApp::WorkThread()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTI13SkylarkUpload[_ZTI13SkylarkUpload]+0x10): undefined reference to `typeinfo for Upp::SkylarkApp'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There were errors. (0:00.23)


Regards,
Novo
Re: FindFile range-loop support [message #56050 is a reply to message #56047] Tue, 19 January 2021 09:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13040
Registered: November 2005
Ultimate Member
Novo wrote on Mon, 18 January 2021 20:24
mirek wrote on Mon, 18 January 2021 09:46
Thanks, fixed.

After the last change:
./umk examples SkylarkUpload CLANG -bus
Linking...
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `ProgressHandler(int, Upp::Http&, int)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:18: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:19: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:35: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:43: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:61: undefined reference to `Upp::Http::SessionSet(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:62: more undefined references to `Upp::Http::SessionSet(char const*, Upp::Value const&)' follow
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_76_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:76: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Home(Upp::Http&)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:80: undefined reference to `Upp::Http::NewSessionId()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:85: undefined reference to `Upp::Http::RenderResult(char const*)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Upload()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:6: undefined reference to `Upp::SkylarkApp::TheApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_88_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:88: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Default(Upp::Http&)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:90: undefined reference to `Upp::Http::Redirect(Upp::HandlerId const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_93_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:93: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `s__sF0_105_fn()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:105: undefined reference to `Upp::RegisterHandler(void (*)(Upp::Http&), char const*, char const*, int (*)(int, Upp::Http&, int))'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `Progress(Upp::Http&)':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/Handlers.icpp:108: undefined reference to `Upp::Http::Content(char const*, Upp::Value const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `SkylarkUpload':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:9: undefined reference to `Upp::SkylarkApp::SkylarkApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:20: undefined reference to `Upp::SkylarkApp::~SkylarkApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `ConsoleMainFn_()':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:26: undefined reference to `Upp::Ini::skylark_log'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.cpp:31: undefined reference to `Upp::SkylarkApp::Run()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o: in function `~SkylarkUpload':
/home/buildbot/worker/l-upp/build/examples/SkylarkUpload/SkylarkUpload.h:8: undefined reference to `Upp::SkylarkApp::~SkylarkApp()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x10): undefined reference to `Upp::SkylarkApp::SigUsr1()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x18): undefined reference to `Upp::SkylarkApp::NotFound(Upp::Http&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x20): undefined reference to `Upp::SkylarkApp::SqlError(Upp::Http&, Upp::SqlExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x28): undefined reference to `Upp::SkylarkApp::InternalError(Upp::Http&, Upp::Exc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x30): undefined reference to `Upp::SkylarkApp::Unauthorized(Upp::Http&, Upp::AuthExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x38): undefined reference to `Upp::SkylarkApp::BadRequest(Upp::Http&, Upp::BadRequestExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x40): undefined reference to `Upp::SkylarkApp::TemplateError(Upp::Http&, Upp::TemplateExc const&)'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTV13SkylarkUpload[_ZTV13SkylarkUpload]+0x48): undefined reference to `Upp::SkylarkApp::WorkThread()'
/usr/bin/ld: /home/buildbot/worker/l-upp/build/.cache/upp.out/SkylarkUpload/CLANG.Debug.Debug_Full.Main.Mt.Shared/SkylarkUpload$blitz.o:(.rodata._ZTI13SkylarkUpload[_ZTI13SkylarkUpload]+0x10): undefined reference to `typeinfo for Upp::SkylarkApp'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There were errors. (0:00.23)


Well, it should be in UppHub Skylark. But that is definitely not related to this fix... I believe this problem is there for more than a week.

Mirek
Re: FindFile range-loop support [message #56059 is a reply to message #56050] Tue, 19 January 2021 15:29 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1138
Registered: December 2006
Senior Contributor
mirek wrote on Tue, 19 January 2021 03:06

Well, it should be in UppHub Skylark. But that is definitely not related to this fix... I believe this problem is there for more than a week.

Mirek

U++ is still broken.
./umk examples AddressBookWeb CLANG -bus
In file included from /home/buildbot/worker/l-upp/build/examples/AddressBookWeb/Pages.icpp:1:
/home/buildbot/worker/l-upp/build/examples/AddressBookWeb/AddressBook.h:4:10: fatal error: 'Skylark/Skylark.h' file not found
#include <Skylark/Skylark.h>
         ^~~~~~~~~~~~~~~~~~~


Regards,
Novo
Re: FindFile range-loop support [message #56060 is a reply to message #56059] Tue, 19 January 2021 15:33 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1138
Registered: December 2006
Senior Contributor
I guess the problem is with the dependency checking in umk/ide.

Regards,
Novo
Re: FindFile range-loop support [message #56064 is a reply to message #56060] Tue, 19 January 2021 17:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13040
Registered: November 2005
Ultimate Member
Novo wrote on Tue, 19 January 2021 15:33
I guess the problem is with the dependency checking in umk/ide.


What do you mean?

AddressBookWeb should be also moved to UppHub and it is great your system spots this...
Re: FindFile range-loop support [message #56066 is a reply to message #56064] Tue, 19 January 2021 17:55 Go to previous message
Novo is currently offline  Novo
Messages: 1138
Registered: December 2006
Senior Contributor
mirek wrote on Tue, 19 January 2021 11:18
Novo wrote on Tue, 19 January 2021 15:33
I guess the problem is with the dependency checking in umk/ide.


What do you mean?

I guess umk/ide does not detect that a package was removed (doesn't exist anymore).
It checks that binary code is not outdated, but it doesn't check that the source code is gone ...


Regards,
Novo
Previous Topic: ide: Build / Copy output directory / target path
Goto Forum:
  


Current Time: Tue Jan 19 18:39:54 CET 2021

Total time taken to generate the page: 0.02519 seconds