Windows Plugin(C/C++ with breveIDE_2.7.2 with MinGW)

Hello,

I am facing a problem.
Problem: Builduing and linking plugin program.

I have the following tools.
1) I have MinGW
2) I want to run cSample.cc or c++Sample.cc which comes through
breveIDE_2.7.2

Unfortunately it does not make cSample_plugin.o

I used the procedure which described in Breve Documentation

1) http://www.spiderland.org/node/2774
That is g++ -c cSample.cc
Result: It successufully make cSample.o file

2)http://www.spiderland.org/node/2777
Tha is I used: ld -shared cSample_plugin.o cSample.o breveIDEPlugin.lib
Result: Unfortunately it shows the following two errors
a)undefined reference to 'brNewBreveCall'
b)undefined reference to 'printf'

Finally when I tried to run cSampleDemo.tz it shows that it does cSampletest
not found and it also does not get cSample_plugin.o(its true because it did
not create..I explaind before)

Could anyone please explain me or advice me the procedure to run the
sample(cSample.c and cSampleDemo.tz file ..comes through breveIDE_2.7.2)

This is related with my thesis. So urgent help will necessary. My e-mail
address is sagar_315@yahoo.com. If possible send through my mail. Thanks in
advance.

Sincerely,
Jahangir
MSc student in IT,
Stuttgart University,Germany.

Mobile: +49 176 21 70 98 68