How can I include gcc_eDlib_302.lib


#1

I am using OpenAt 3.02 and MS Visual C++

I want to use TCP/IP stack functions. Do I have to include the gcc_eDlib_302.lib library or copy it into any directory? Because there is a problem with the usage of ed_Init() function.

void adl_main ( adl_InitType_e InitType )
{
TRACE (( 1, “Embedded : Appli Init” ));
ed_Init();
}
–>1 error(s), 1 warning(s)

but if I use function as below
void adl_main ( adl_InitType_e InitType )
{
TRACE (( 1, “Embedded : Appli Init” ));
s8 ed_Init();
}
3 error(s), 6 warning(s) but this means compiling is successful and compiler creates the .dwl file
why shoul I use s8 before ed_Init(); ? Is it true? How can I get the result code of ed_Init function i.e. is it connected or not?

I think compiler does not recognize the ed_Init() function so it doesn’t see the gcc_eDlib_302.lib file. When I write s8 ed_Init(); compiler behaves as if it is a new function declaration.
Any idea?


#2

Hello,

Since you do not exactly describe your warnings and errors in detail, I cannot say to 100 % that it is because you dont have included the TCP/IP lib correctly, but it is most likely the cause for your errors.

In page 22 of the “Open AT V.3.00 Frequently asked questions” document
the following is written:

You should also include the ed_common.h file in your source file (from where you use the ed_ functions)

And after a sucessful ed_init(), there are some other steps to do before you can connect and send data to a remote entity…
See the “Open AT IP Connectivity Development Guide” for more information

good luck

/Snoooze


#3

thank you

It works