A: 

You're not building ManagedLog.cpp. Your compile sequence should look something like this example (simplified for clarity):

  1. compile RunLog.c into RunLog.o
  2. compile ManagedLog.c into ManagedLog.o
  3. link RunLog.o and ManagedLog.o into RunLog.exe

Steps 1 & 2 could be in the other order if you like.

Carl Norum
how can I link the .o files to the .exe?
Eran
@Eran, I have no idea - I have never used eclipse. You want a command line that looks like `g++ src\RunLog.o src\ManagedLog.o -o RunLog.exe`.
Carl Norum
OK!! I searched all over the RunLog Properties for linker property and found it in C/C++ Build-> Setting->ToolSettings ->MinGW C++ Linker ,I opend the Libararies folder and found a place to add object , i added the ManagedLog.o file and it worked like a magicThanks a lot for your tip I was just about quitting to c# (-:
Eran