----- g ( GUI MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX )
main.cpp
g: 1 file(s) built in (0:06.80), 6801 msecs / file, duration = 7224 msecs, parallelization 0%
Linking...
/upp/out/g/GCC.Debug.Debug_full.Gui.Main.Shared/main.o: In function `main':
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::AppInit__(int, char const**, char const**)'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::Ctrl::InitX11(char const*)'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::Ctrl::CloseTopCtrls()'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::UsrLog(char const*)'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::DeleteUsrLog()'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::Ctrl::ExitX11()'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::AppExit__()'
/upp/uppsrc/g/main.cpp:9: undefined reference to `Upp::GetExitCode()'
/upp/out/g/GCC.Debug.Debug_full.Gui.Main.Shared/main.o: In function `MemDiagCls':
upp/uppsrc/Core/Core.h:289: undefined reference to `Upp::sMemDiagInitCount'
upp/uppsrc/Core/Core.h:289: undefined reference to `Upp::sMemDiagInitCount'
/upp/uppsrc/Core/Core.h:289: undefined reference to `Upp::MemoryInitDiagnostics()'
/upp/out/g/GCC.Debug.Debug_full.Gui.Main.Shared/main.o: In function `~MemDiagCls':
/upp/uppsrc/Core/Core.h:290: undefined reference to `Upp::sMemDiagInitCount'
/upp/uppsrc/Core/Core.h:290: undefined reference to `Upp::sMemDiagInitCount'
/upp/uppsrc/Core/Core.h:290: undefined reference to `Upp::sMemDiagInitCount'
/upp/uppsrc/Core/Core.h:290: undefined reference to `Upp::MemoryDumpLeaks()'
collect2: ld returned 1 exit status
dolik.rce Messages: 1791 Registered: August 2008 Location: Czech Republic
Ultimate Contributor
Hi Small_Dwarf,
Welcome to the forum!
You just copied the code from the web into your package (called "g"), right? The problem is that it uses code from other packages. The GUI related code can be added to your package simply by adding a "CtrlCore" package as a dependency. Right click on "g" in the left uper pane and choose "Add package to 'g'", it will bring up a selection dialogue.
Also note that all the examples and tutorials mentioned on this website are present in your installation, in the respective assemblies, available when you start theide or from File>Set main package.
You might also probably want to have a look at the Packages, Assemblies and Nests article, to get the idea about code organization in U++
Thank you, dolik.rce.
Yes, I called my package 'g' and copied and pasted the code into 'g'.
Due to your advice I chose GUI2 from the provided tutorial list and saw 2 errors. I just included "/usr/lib/i386-linux-gnu/glib-2.0/include" and "/usr/include/gdk-pixbuf-2.0" into the include list and the code was able to be executed so I could see the window!