Unable to execute the c program

i have created the new product and downloaded product.dat file also i have changed the GUID details in the code. when ever i compile the code i get an error listed as follows:
Sample.cpp:(.text+0x84): undefined reference to __imp_GenerateOfflineActivationRequest' Sample.cpp:(.text+0x50): undefined reference to__imp_SetVersionGUID’
Sample.cpp:(.text+0x17): undefined reference to `__imp_SetProductFile’

please some one help me

should i use libLexActivator.a file? if so can u please specify the process

Hi,

Please mention your compiler and command you are executing to compile. You need to give path of shared or static lib at the time of compilation

g++ -L/path/to/folder/conatining/lexactivator/file -Wall -o test main.c -llexactivator

thank you very much adnan , u have been of great help