windows plugin
Hi,
I am having problems interfacing your sample C program with the BraitenbergTemplate.tz demo using a simple gcc compiler.
I did the following:
gcc -c cSample.c
ld -shared -o slBrevePluginAPI.dll ./cSample.o braveplugin.a -lc
I moved the slBrevePluginAPI.dll file to the classes folder and edited the BraitenbergTemplate.tz file to include:
@plugin "slBrevePlugin.dll" (cSampleLoadFunctions).
and added the class to the bottom:
Object : mySimplePluginObject{
+ to get-output-from-plugin:
return cSampleTest(5, "hi");
}
However, when I rerun the simulations, it tells me that the Internal function "cSampleTest" not found
Am I missing a step somewhere? I greatly appreciate any help. Thanks in advance!
Harvey
»
Submitted by swoosh on Tue, 2006-02-14 22:50.
- Login to post comments

windows plugin
Are there any other error messages? Perhaps one indicating that the plugin did not load properly?
Also, did you try running the included cSampleDemo.tz simulation?
- jon
windows plugin
You're right Jon, the plugin was not loading correctly. I found my problem, I was using cygwin to compile and it wouldn't compile correctly without the -mno-cygwin flag. Everything works now, thanks! This program of yours is really great, can't wait to dive more into it.
Harvey
Builduing plugin in Windows
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