crossbridge-community / crossbridge

C/C++ Compiler for the ActionScript Virtual Machine (AVM2)
http://sourceforge.net/projects/crossbridge-community/
Other
152 stars 35 forks source link

undefined reference to '_connect' #63

Closed Anniywell closed 10 years ago

Anniywell commented 10 years ago

When include <sys/socket.h>, use connect function, compile error

vpmedia commented 10 years ago

Hi, Could you be more specific what are you trying to do? In case of undefined symbols (like connect which is related to networking) either you have stripped symbols or missing implementation.

Cheers

Anniywell commented 10 years ago

"sys/socket.h" The function of "connect" undefined reference to '_connect'.And "accept" also is unavaliable

vpmedia commented 10 years ago

You can learn more about the issue in this topic: https://forums.adobe.com/thread/1437433

I've solved this temporarly adding a stub method: https://github.com/crossbridge-community/crossbridge-swc-openssl/blob/master/clientlib.c

void connect() {
    // stub
}
Anniywell commented 10 years ago

So crossbridge is supported by socket ?

vpmedia commented 10 years ago

No, Sockets are not supported by CrossBridge SDK. If you need this kind of functionality, you have to implement it using inline_as3.