This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

conflict between winsock2.h and socket.h


Hi, there:


    I have followed
    http://www.ecoscentric.com/devzone/configtool.shtml to build
    configtool. 

    It works on Linux, bit I got some problems on Windows.

    My commands:
    $ cd ~/Sandbox/CT2-Win/
    $ make configtool-build-20040104
    $ cd configtool-build-20040104
    $ make -f
    ../ecos/host/tools/configtool/standalone/wxwin/makefile.gnu
    install WXDIR=$HOME/Sandbox/CT2-Win/wxMSW-2.4.2 \
    ECOSSRCDIR=$HOME/Sandbox/CT2-Win/ecos/host \
    INSTALLDIR=$HOME/Sandbox/CT2-Win/ecos-tool >& make.out

    When I tried the 3rd step:  "Build and install the eCos Configuration Tool (INSTALLDIR must
    match the eCos host infrastructure prefix):"

    I got errors: conflict between winsock2.h and  socket.h
    I use wxMSW-2.4.2 

    Any clue ? 

----------------------
In file included from /usr/include/sys/socket.h:15,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/sckaddr.h:106,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/socket.h:34,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/protocol/protocol.h:28,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/url.h:24,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/filesys.h:30,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/html/helpdata.h:25,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/html/helpfrm.h:23,
                 from /cygdrive/c/Sandbox/CT2-Win/wxMSW-2.4.2/include/wx/html/helpctrl.h:23,
                 from /cygdrive/c/Sandbox/CT2-Win/ecos/host/tools/configtool/standalone/wxwin/configtool.h:79,
                 from /cygdrive/c/Sandbox/CT2-Win/ecos/host/tools/configtool/standalone/wxwin/ecpch.h:72,
                 from /cygdrive/c/Sandbox/CT2-Win/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp:50:
/usr/include/cygwin/socket.h:18: error: redefinition of `struct sockaddr'
/usr/include/w32api/winsock2.h:327: error: previous definition of `struct 
   sockaddr'


-kevinlin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]