Home » Community » Newbie corner » Linking error with imagefile  
	
		
		
			| Linking error with imagefile [message #58768] | 
			Tue, 23 August 2022 18:07   | 
		 
		
			
				
				
				
					
						  
						GiuMar
						 Messages: 4 Registered: August 2022  Location: Italy
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi all, 
 
I'm a very beginner with UPP. I started to write a simple app, while adding some icons to a toolbar I get the following error message by the linker: 
 
 (): Linking has failed
 (): ld.lld: error: undefined symbol: ImmaginiImg::Get(int)
C:\upp\MyApps\BasicCtrlLibApp\Immagini.iml (2): >>> referenced by C:\upp\MyApps\BasicCtrlLibApp\Immagini.iml:2
 (): >>>               C:/upp/out/MyApps/BasicCtrlLibApp/CLANGx64.Debug.Debug_Full.Gui.Main\main.o:(ImmaginiImg::layers())
 (): clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
  
 
I used just a simple Iml file with one icon and used the following code in my main.cpp file: 
 
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define IMAGECLASS ImmaginiImg
#define IMAGEFILE <BasicCtrlLibApp/Immagini.iml>
#include <Draw/iml_header.h>
  
 
If I try to use any standard icon coming from CtrlImg, It compiles without errors. 
 
Does anybody can help?
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 02:40:02 CET 2025 
 Total time taken to generate the page: 0.07339 seconds 
 |