#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    2
    Rep Power
    0

    kylix3, tcp/ip from cmdline, cannot be compiled


    Hello,
    I'm using Kylix 3 enterprise and I need to create a server using INDY component (TIdTCPServer) => I have to use this component in command-line application, not in a form (GUI).
    I tested it in C++ Builder (Windows) and the following part of code works in Windows:

    TIdTCPServer *IdTCPServer;

    IdTCPServer = new TIdTCPServer(NULL);
    IdTCPServer->....setting many properties
    IdTCPServer->Active = true;

    After executing these commands server is listening and working fine.


    When I attempt to build this project on Kylix...

    [Linker Error] Unresolved external 'Idtcpserver::TIdTCPServer::' \
    referenced from Unit1.o
    [Linker Error] Unresolved external '__fastcall Idtcpserver::TIdTCPServer::TIdTCPServer\
    (Classes::TComponent *)' referenced from Unit1.o

    File Unit1.h contains the same includes (#include <...>) as the GUI version.

    When I create normal application - Form (CLX), place this component to the form and set all parameters, everything works. But I don't need it in GUI.



    btw: Do you know, how can be this message repaired?
    Message catalog not found
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    1
    Rep Power
    0

    late but the answer


    the way to reapair this message is to modify two options.

    in the project manager, right click on project leave, and click on "Edit Option Source"

    So, the options are

    <LIBRARIES value="rtl.a indy.a"/> (Add indy.a)
    <SPARELIBS value="indy.a rtl.a"/> (Add indy.a)

    and the error is repaired...http://forums.devshed.com/newreply.php?do=newreply&p=628650#


    Originally Posted by |-|0\/\/4|2|)
    Hello,
    I'm using Kylix 3 enterprise and I need to create a server using INDY component (TIdTCPServer) => I have to use this component in command-line application, not in a form (GUI).
    I tested it in C++ Builder (Windows) and the following part of code works in Windows:

    TIdTCPServer *IdTCPServer;

    IdTCPServer = new TIdTCPServer(NULL);
    IdTCPServer->....setting many properties
    IdTCPServer->Active = true;

    After executing these commands server is listening and working fine.


    When I attempt to build this project on Kylix...

    [Linker Error] Unresolved external 'Idtcpserver::TIdTCPServer::' \
    referenced from Unit1.o
    [Linker Error] Unresolved external '__fastcall Idtcpserver::TIdTCPServer::TIdTCPServer\
    (Classes::TComponent *)' referenced from Unit1.o

    File Unit1.h contains the same includes (#include <...>) as the GUI version.

    When I create normal application - Form (CLX), place this component to the form and set all parameters, everything works. But I don't need it in GUI.



    btw: Do you know, how can be this message repaired?
    Message catalog not found

IMN logo majestic logo threadwatch logo seochat tools logo