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 » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Compile package with iml file problem!
Compile package with iml file problem! [message #19615] Tue, 23 December 2008 08:06 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

I have a problem on compiling with MSC8:Debug when i'm trying to add iml file:
Quote:

----- UApplication ( GUI MAIN MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (9 / 9)
MainWorkSpace.cpp
MainMenu.cpp
main.cpp
UApplication: 3 file(s) built in (0:04.60), 1535 msecs / file, duration = 4672 msecs, parallelization 71%
Linking...
MainWorkSpace.obj : error LNK2019: unresolved external symbol "public: static class Upp::Image __cdecl UA::UAImg::Get(int)" (?Get@UAImg@
UA@@SA?AVImage@Upp<a href="mailto:@@H" target="_blank">@@H</a>@Z) referenced in function "public: static class Upp::Image __cdecl UA::UAImg::MainIcon(void)" (?MainIcon@UAImg
@UA@@SA?AVImage@Upp@@XZ)
C:\uppdev\out\MSC8.Debug.Debug_full.Gui.Noblitz\UApplication .exe : fatal error LNK1120: 1 unresolved externals

There were errors. (3:00.65)


in .h file i wrote:
Quote:

#ifndef _UApplication_MainWorkSpace_h_
#define _UApplication_MainWorkSpace_h_

#include <CtrlLib/CtrlLib.h>

namespace UA{

using namespace UPP;

#define IMAGECLASS UAImg
#define IMAGEFILE <UApplication/UApplication.iml>
#include <Draw/iml_header.h>
...



and in .cpp file i use this class:
Quote:


#include "MainWorkSpace.h"

namespace UA{

UApplication::UApplication() {
Sizeable();
Zoomable();
CtrlLayout(*this);
AddFrame(menu);
Icon(UAImg::MainIcon());
...



With active verbose i have:
Quote:

----- CtrlLib ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (1 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\CtrlLib
----- CtrlCore ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (2 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\CtrlCore
----- RichText ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (3 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\RichText
----- Draw ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (4 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\Draw
----- plugin\bmp ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (5 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\plugin\bmp
----- Core ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (6 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\Core
----- plugin\z ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (7 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\plugin\z
----- plugin\png ( GUI MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (8 / 9)
cd D:\source_codes\upp\svn_google\uppsrc\plugin\png
----- UApplication ( GUI MAIN MSC8 DEBUG DEBUG_FULL WIN32 MSC ) (9 / 9)
cd D:\source_codes\UltimateAutomation\UApplication
Linking...
link -nologo -machine:I386 -pdb:" C:\uppdev\out\MSC8.Debug.Debug_full.Gui.Noblitz\UApplication .pdb " -out:"C:\uppdev\out\MSC8.Debug.Debug_
full.Gui.Noblitz\UApplication.exe" -incremental:yes -debug -OPT:NOREF -subsystem:windows -LIBPATH:"C:\Program Files\Microsoft Visual
Studio 8\Vc\Lib" -LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib" -LIBPATH:"C:\uppdev\sdl\lib" -LIBPATH:"C:
\Program Files\PostgreSQL\8.2.4-3.1C\lib" -LIBPATH:"C:\OpenSSL\lib\VC" "C:\uppdev\out\UApplication\MSC8.Debug.Debug_full.
Gui.Main.Noblitz\MainWorkSpace.obj" " C:\uppdev\out\UApplication\MSC8.Debug.Debug_full.Gui.Main.No blitz\MainMenu.obj " "C:\uppdev\out\
UApplication\MSC8.Debug.Debug_full.Gui.Main.Noblitz\main.obj " " C:\uppdev\out\CtrlLib\MSC8.Debug.Debug_full.Gui.Noblitz\Ctrl Lib.obj "
" C:\uppdev\out\CtrlLib\MSC8.Debug.Debug_full.Gui.Noblitz\Ctrl Lib.lib " " C:\uppdev\out\CtrlCore\MSC8.Debug.Debug_full.Gui.Noblitz\Ctr l
Core.obj" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\advapi32.lib" "C:\Program Files\Microsoft Visual Studio 8\V
c\PlatformSDK\Lib\comdlg32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\comctl32.lib" "C:\uppdev\out\CtrlCore
\MSC8.Debug.Debug_full.Gui.Noblitz\CtrlCore.lib" " C:\uppdev\out\RichText\MSC8.Debug.Debug_full.Gui.Noblitz\Ric hImage.obj " "C:\uppdev
\out\RichText\MSC8.Debug.Debug_full.Gui.Noblitz\RichText.lib " "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\user32.
lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\gdi32.lib" "C:\uppdev\out\Draw\MSC8.Debug.Debug_full.Gui.Noblitz
\Draw.lib" " C:\uppdev\out\plugin\bmp\MSC8.Debug.Debug_full.Gui.Noblitz\B mpReg.obj " "C:\uppdev\out\plugin\bmp\MSC8.Debug.Debug_full.G
ui.Noblitz\bmp.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\Lib\kernel32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\
PlatformSDK\Lib\user32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\advapi32.lib" "C:\Program Files\Microsoft
Visual Studio 8\Vc\PlatformSDK\Lib\shell32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\winmm.lib" "C:\Progr
am Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\mpr.lib" " C:\uppdev\out\Core\MSC8.Debug.Debug_full.Gui.Noblitz\Core.li b " "C:\u
ppdev\out\plugin\z\MSC8.Debug.Debug_full.Gui.Noblitz\z.lib" " C:\uppdev\out\plugin\png\MSC8.Debug.Debug_full.Gui.Noblitz\p ngreg.obj "
" C:\uppdev\out\plugin\png\MSC8.Debug.Debug_full.Gui.Noblitz\p ng.lib "
MainWorkSpace.obj : error LNK2019: unresolved external symbol "public: static class Upp::Image __cdecl UA::UAImg::Get(int)" (?Get@UAImg@
UA@@SA?AVImage@Upp<a href="mailto:@@H" target="_blank">@@H</a>@Z) referenced in function "public: static class Upp::Image __cdecl UA::UAImg::MainIcon(void)" (?MainIcon@UAImg
@UA@@SA?AVImage@Upp@@XZ)
C:\uppdev\out\MSC8.Debug.Debug_full.Gui.Noblitz\UApplication .exe : fatal error LNK1120: 1 unresolved externals
"C:\Program Files\Microsoft Visual Studio 8\Vc\Bin\link.exe" -nologo -machine:I386 -pdb:"C:\uppdev\out\MSC8.Debug.Debug_full.Gui.Noblitz
\UApplication.pdb" -out:" C:\uppdev\out\MSC8.Debug.Debug_full.Gui.Noblitz\UApplication .exe " -incremental:yes -debug -OPT:NOREF -subsy
stem:windows -LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\Vc\Lib" -LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\Vc\Pl
atformSDK\Lib" -LIBPATH:"C:\uppdev\sdl\lib" -LIBPATH:"C:\Program Files\PostgreSQL\8.2.4-3.1C\lib" -LIBPATH:"C:\OpenSSL\lib\VC"
" C:\uppdev\out\UApplication\MSC8.Debug.Debug_full.Gui.Main.No blitz\MainWorkSpace.obj " "C:\uppdev\out\UApplication\MSC8.Debug.D
ebug_full.Gui.Main.Noblitz\MainMenu.obj" " C:\uppdev\out\UApplication\MSC8.Debug.Debug_full.Gui.Main.No blitz\main.obj " "C:\uppdev\out
\CtrlLib\MSC8.Debug.Debug_full.Gui.Noblitz\CtrlLib.obj" " C:\uppdev\out\CtrlLib\MSC8.Debug.Debug_full.Gui.Noblitz\Ctrl Lib.lib " "C:\up
pdev\out\CtrlCore\MSC8.Debug.Debug_full.Gui.Noblitz\CtrlCore .obj " "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\adv
api32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\comdlg32.lib" "C:\Program Files\Microsoft Visual Studio 8\
Vc\PlatformSDK\Lib\comctl32.lib" " C:\uppdev\out\CtrlCore\MSC8.Debug.Debug_full.Gui.Noblitz\Ctr lCore.lib " "C:\uppdev\out\RichText\MSC
8.Debug.Debug_full.Gui.Noblitz\RichImage.obj" " C:\uppdev\out\RichText\MSC8.Debug.Debug_full.Gui.Noblitz\Ric hText.lib " "C:\Program Fi
les\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\user32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\gdi32.li
b" " C:\uppdev\out\Draw\MSC8.Debug.Debug_full.Gui.Noblitz\Draw.li b " " C:\uppdev\out\plugin\bmp\MSC8.Debug.Debug_full.Gui.Noblitz\B mpRe
g.obj" " C:\uppdev\out\plugin\bmp\MSC8.Debug.Debug_full.Gui.Noblitz\b mp.lib " "C:\Program Files\Microsoft Visual Studio 8\Vc\Lib\kerne
l32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\user32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\P
latformSDK\Lib\advapi32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\shell32.lib" "C:\Program Files\Microsoft
Visual Studio 8\Vc\PlatformSDK\Lib\winmm.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\mpr.lib" "C:\uppdev\ou
t\Core\MSC8.Debug.Debug_full.Gui.Noblitz\Core.lib" " C:\uppdev\out\plugin\z\MSC8.Debug.Debug_full.Gui.Noblitz\z.l ib " "C:\uppdev\out\p
lugin\png\MSC8.Debug.Debug_full.Gui.Noblitz\pngreg.obj" " C:\uppdev\out\plugin\png\MSC8.Debug.Debug_full.Gui.Noblitz\p ng.lib "
Error executing "C:\Program Files\Microsoft Visual Studio 8\Vc\Bin\link.exe" -nologo -machine:I386 -pdb:"C:\uppdev\out\MSC8.Debug.Debug_
full.Gui.Noblitz\UApplication.pdb" -out:" C:\uppdev\out\MSC8.Debug.Debug_full.Gui.Noblitz\UApplication .exe " -incremental:yes -debug -
OPT:NOREF -subsystem:windows -LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\Vc\Lib" -LIBPATH:"C:\Program Files\Microsoft Visua
l Studio 8\Vc\PlatformSDK\Lib" -LIBPATH:"C:\uppdev\sdl\lib" -LIBPATH:"C:\Program Files\PostgreSQL\8.2.4-3.1C\lib" -LIBPATH:"C:\OpenS
SL\lib\VC" " C:\uppdev\out\UApplication\MSC8.Debug.Debug_full.Gui.Main.No blitz\MainWorkSpace.obj " "C:\uppdev\out\UApplicat
ion\MSC8.Debug.Debug_full.Gui.Main.Noblitz\MainMenu.obj" " C:\uppdev\out\UApplication\MSC8.Debug.Debug_full.Gui.Main.No blitz\main.obj
" " C:\uppdev\out\CtrlLib\MSC8.Debug.Debug_full.Gui.Noblitz\Ctrl Lib.obj " "C:\uppdev\out\CtrlLib\MSC8.Debug.Debug_full.Gui.Noblitz\Ctr
lLib.lib" " C:\uppdev\out\CtrlCore\MSC8.Debug.Debug_full.Gui.Noblitz\Ctr lCore.obj " "C:\Program Files\Microsoft Visual Studio 8\Vc\Pla
tformSDK\Lib\advapi32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\comdlg32.lib" "C:\Program Files\Microsoft
Visual Studio 8\Vc\PlatformSDK\Lib\comctl32.lib" " C:\uppdev\out\CtrlCore\MSC8.Debug.Debug_full.Gui.Noblitz\Ctr lCore.lib " "C:\uppdev\
out\RichText\MSC8.Debug.Debug_full.Gui.Noblitz\RichImage.obj " " C:\uppdev\out\RichText\MSC8.Debug.Debug_full.Gui.Noblitz\Ric hText.lib
" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\user32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\Platform
SDK\Lib\gdi32.lib" " C:\uppdev\out\Draw\MSC8.Debug.Debug_full.Gui.Noblitz\Draw.li b " "C:\uppdev\out\plugin\bmp\MSC8.Debug.Debug_full.G
ui.Noblitz\BmpReg.obj" " C:\uppdev\out\plugin\bmp\MSC8.Debug.Debug_full.Gui.Noblitz\b mp.lib " "C:\Program Files\Microsoft Visual Studi
o 8\Vc\Lib\kernel32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\user32.lib" "C:\Program Files\Microsoft Visu
al Studio 8\Vc\PlatformSDK\Lib\advapi32.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\shell32.lib" "C:\Program
Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\winmm.lib" "C:\Program Files\Microsoft Visual Studio 8\Vc\PlatformSDK\Lib\mpr.li
b" " C:\uppdev\out\Core\MSC8.Debug.Debug_full.Gui.Noblitz\Core.li b " " C:\uppdev\out\plugin\z\MSC8.Debug.Debug_full.Gui.Noblitz\z.l ib "
" C:\uppdev\out\plugin\png\MSC8.Debug.Debug_full.Gui.Noblitz\p ngreg.obj " "C:\uppdev\out\plugin\png\MSC8.Debug.Debug_full.Gui.Noblitz\
png.lib"
Exitcode: 1120

There were errors. (0:00.57)



Help me please!
If is need I attached package.

[Updated on: Tue, 23 December 2008 08:09]

Report message to a moderator

Re: Compile package with iml file problem! [message #19616 is a reply to message #19615] Tue, 23 December 2008 09:13 Go to previous messageGo to next message
Sender Ghost is currently offline  Sender Ghost
Messages: 288
Registered: November 2008
Experienced Member
Hello, Ion.

You didn't include "Draw/iml_source.h" header file in "UApplication\MainWorkSpace.cpp". Unified diff for fixed file below:
 #include "MainWorkSpace.h"
 
 //using namespace UPP;
 
 namespace UA{
 
+#define IMAGECLASS UAImg
+#define IMAGEFILE <UApplication/UApplication.iml>
+#include <Draw/iml_source.h>
+
 UApplication::UApplication() {
 	Sizeable();
 	Zoomable();
 	CtrlLayout(*this);
 	AddFrame(menu);
 	Icon(UAImg::MainIcon());


As written in the GUI Tutorial:
Quote:


Note: #include <Draw/iml.h> works only when images are to be used in single .cpp file, otherwise you must put "obsuscated" sequence with #include <Draw/iml_header.h> to you header and #include <Draw/iml_source.h> to any .cpp file.


[Updated on: Tue, 23 December 2008 09:46]

Report message to a moderator

Re: Compile package with iml file problem! [message #19617 is a reply to message #19616] Tue, 23 December 2008 11:44 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Sender Ghost wrote on Tue, 23 December 2008 10:13


You didn't include "Draw/iml_source.h" header file in "UApplication\MainWorkSpace.cpp". Unified diff for fixed file below:
 #include "MainWorkSpace.h"
 
 //using namespace UPP;
 
 namespace UA{
 
+#define IMAGECLASS UAImg
+#define IMAGEFILE <UApplication/UApplication.iml>
+#include <Draw/iml_source.h>
+
 UApplication::UApplication() {
 	Sizeable();
 	Zoomable();
 	CtrlLayout(*this);
 	AddFrame(menu);
 	Icon(UAImg::MainIcon());


As written in the GUI Tutorial:
Quote:


Note: #include <Draw/iml.h> works only when images are to be used in single .cpp file, otherwise you must put "obsuscated" sequence with #include <Draw/iml_header.h> to you header and #include <Draw/iml_source.h> to any .cpp file.




Sure! thanks...
Previous Topic: Draw::DrawImageOp optimization bug
Next Topic: To split Images code to "h" & "cpp" file has a link error, "multiple de
Goto Forum:
  


Current Time: Tue Nov 19 13:48:33 CET 2019

Total time taken to generate the page: 0.01443 seconds