regarding tcpip in photon

I have wrote a client and server programs using tcpip, I can compile them in
the command line using -l socket
to link to the socket library.
If i want to put this piece of code in photon, How do i make it link to the
socket library? modify the makefile perhaps?

Hello Ran,

Yes, you can modify your makefile. In your makefile you should have two
lines as follows.
LDFLAGS = -V$(PLATFORM) -Bstatic $(DEBUG) -l phexlib $(ABLIB) $(PHABOPTS)
SDFLAGS = -V$(PLATFORM) $(DEBUG) -l phexlib $(ABLIB) $(PHABOPTS)

after the ‘-l phexlib’ in these lines you can add ‘-l socket’ to link to
the socket lib.

Hope this helps,

Regards,
Dave B.


ran zhang wrote:

I have wrote a client and server programs using tcpip, I can compile them in
the command line using -l socket
to link to the socket library.
If i want to put this piece of code in photon, How do i make it link to the
socket library? modify the makefile perhaps?
\