eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingProblem z kompilacją › Problem z kompilacją
  • Path: news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!
    news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.gigane
    ws.com!nntp.giganews.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx0
    1.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.n
    eostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
    From: Michal Nitecki <m...@o...SPAMSPAMSPAM.pl>
    Newsgroups: pl.comp.lang.c,pl.comp.programming
    Subject: Problem z kompilacją
    Date: Tue, 02 Mar 2010 23:53:45 +0100
    Organization: TP - http://www.tp.pl/
    Lines: 62
    Message-ID: <hmk546$mq7$1@atlantis.news.neostrada.pl>
    NNTP-Posting-Host: aaqd24.neoplus.adsl.tpnet.pl
    Mime-Version: 1.0
    Content-Type: text/plain; charset=ISO-8859-2; format=flowed
    Content-Transfer-Encoding: 8bit
    X-Trace: atlantis.news.neostrada.pl 1267570630 23367 83.5.163.24 (2 Mar 2010 22:57:10
    GMT)
    X-Complaints-To: u...@n...neostrada.pl
    NNTP-Posting-Date: Tue, 2 Mar 2010 22:57:10 +0000 (UTC)
    User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
    Xref: news-archive.icm.edu.pl pl.comp.lang.c:288659 pl.comp.programming:185200
    [ ukryj nagłówki ]

    Cześć.
    Jest sobie projekt freemodbus.org. Pliki które nas interesują znajdują
    się tutaj: http://download.berlios.de/freemodbus/freemodbus-v1.
    4.0.zip

    Próbuję skompilować na Ubuntu 9.10 katalog demo/LINUXTCP, jednak
    wyskakują mi pewne błędy (to niżej). Co więcej, próba kompilacji
    katalogu demo/WIN32TCP na Visual Studio pokazuje mi podobne błędy. Chyba
    chodzi o dałączenie jakiejś biblioteki, czy coś takiego.
    Mógł by ktoś rzucić na to okiem (najlepiej spróbować skompliwać, to
    dosłownie chwilka) i powiedzieć co jest nie tak?

    Tutaj wyjście z mojej konsoli pod linuksem:
    zygfryd@punisher:~/freemodbus-v1.4.0/demo/LINUXTCP$ make
    gcc -lpthread demo.o port/portother.o port/portevent.o port/porttcp.o
    ../../modbus/mb.o ../../modbus/tcp/mbtcp.o
    ../../modbus/functions/mbfunccoils.o ../../modbus/functions/mbfuncdiag.o
    ../../modbus/functions/mbfuncholding.o
    ../../modbus/functions/mbfuncinput.o
    ../../modbus/functions/mbfuncother.o ../../modbus/functions/mbfuncdisc.o
    ../../modbus/functions/mbutils.o -o tcpmodbus
    demo.o: In function `main':
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/demo.c
    :76: undefined
    reference to `eMBTCPInit'
    ../../modbus/mb.o: In function `eMBInit':
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:148:
    undefined reference to `eMBRTUStart'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:149:
    undefined reference to `eMBRTUStop'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:150:
    undefined reference to `eMBRTUSend'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:151:
    undefined reference to `eMBRTUReceive'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:152:
    undefined reference to `vMBPortClose'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:153:
    undefined reference to `xMBRTUReceiveFSM'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:154:
    undefined reference to `xMBRTUTransmitFSM'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:155:
    undefined reference to `xMBRTUTimerT35Expired'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:157:
    undefined reference to `eMBRTUInit'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:162:
    undefined reference to `eMBASCIIStart'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:163:
    undefined reference to `eMBASCIIStop'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:164:
    undefined reference to `eMBASCIISend'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:165:
    undefined reference to `eMBASCIIReceive'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:166:
    undefined reference to `vMBPortClose'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:167:
    undefined reference to `xMBASCIIReceiveFSM'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:168:
    undefined reference to `xMBASCIITransmitFSM'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:169:
    undefined reference to `xMBASCIITimerT1SExpired'
    /home/zygfryd/freemodbus-v1.4.0/demo/LINUXTCP/../../
    modbus/mb.c:171:
    undefined reference to `eMBASCIIInit'
    collect2: ld returned 1 exit status
    make: *** [tcpmodbus] Błąd 1

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: