Hi,
I red dozens of post on that matter and I am still lost. They talk about debuggers , C++ , etc.
Is Code Block an Ide? Are the examples not suppose to work by themselves?
I am learning C.
Here is my example I took on : http://melem.developpez.com/langagec/objc/
CodeBlock produces dsomme.o and exemple.o
------- dsomme.c----
__declspec(dllexport) int somme(int a, int b)
{
return a + b;
}
__declspec(dllexport) int produit(int a, int b)
{
int prod = 0;
while (b-- > 0)
prod += a;
return prod;
}
---------------------------------
--------- exemple.c --------
#include <stdio.h>
__declspec(dllimport) int somme(int a, int b);
__declspec(dllimport) int produit(int a, int b);
int main(void)
{
int a = 2, b = 5;
printf("%d + %d = %d\n", a, b, somme(a, b));
printf("%d * %d = %d\n", a, b, produit(a, b));
return 0;
}
---------------------------------------
Compiler is gnu gcc 4.4.5
-------
HP Pavilion Elite m9525f Desktop PC
Vista Édition Familiale Premium SP1 64 bits
Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
Intel 64 (EM64T), x86-64
------------
Thanks for your attention,
JPD
[attachment deleted by admin]