Hi,
I have a Problem with the linker (CGT 6.1.11 / CGT 6.1.12). It hangs up during linking.
__________________________________________________________________
The scenario (3 Files):
Global.cpp:
#pragma DATA_SECTION(".uid");
unsigned int g_uiUniqueId;
Global.hpp:
extern unsigned int g_uiUniqueId;
Main.cpp:
#include "Global.hpp"
int main()
{
unsigned int test = g_uiUniqueId;
}
__________________________________________________________________
If I don't use g_uiUniqueId in main.cpp, all works perfect.
If the #pragma DATA_SECTION in Global.cpp is removed, it also works perfect.
It seems that the linker hangs up during linking main, when the DATA_SECTION pragma is used.
Regards,
Joe