eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingProblem z kompilacją › Re: Problem z kompilacją
  • Path: news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.straub-
    nv.de!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.co
    m!q31g2000prf.googlegroups.com!not-for-mail
    From: Sintsu <s...@g...com>
    Newsgroups: pl.comp.lang.c,pl.comp.programming
    Subject: Re: Problem z kompilacją
    Date: Fri, 23 Apr 2010 10:56:29 -0700 (PDT)
    Organization: http://groups.google.com
    Lines: 84
    Message-ID: <3...@q...googlegroups.com>
    References: <hmk546$mq7$1@atlantis.news.neostrada.pl>
    NNTP-Posting-Host: 123.240.236.14
    Mime-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable
    X-Trace: posting.google.com 1272045389 12681 127.0.0.1 (23 Apr 2010 17:56:29 GMT)
    X-Complaints-To: g...@g...com
    NNTP-Posting-Date: Fri, 23 Apr 2010 17:56:29 +0000 (UTC)
    Complaints-To: g...@g...com
    Injection-Info: q31g2000prf.googlegroups.com; posting-host=123.240.236.14;
    posting-account=YDvzJQoAAAAG9YwsIqYmnYlsE_GwyACJ
    User-Agent: G2/1.0
    X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.0.19)
    Gecko/2010031422 Firefox/3.0.19 (.NET CLR 3.5.30729),gzip(gfe)
    Xref: news-archive.icm.edu.pl pl.comp.lang.c:289452 pl.comp.programming:185497
    [ ukryj nagłówki ]

    I found this article through the google, and translate it to english
    I'm facing the same problem like you, and trying to solve it compare
    with the other demo code but not figure it out.

    It's look like the programe not yet defined the `eMBTCPInit' , but it
    indeed show up in the mb.h and mbtcp.h.

    If anyone knows the solution please give us a hint, and I'll very
    appreciate the work you done, thanks.

    On 3?3?, ??6?53?, Michal Nitecki <m...@o...SPAMSPAMSPAM.pl>
    wrote:
    > Cześć.
    > Jest sobie projekt freemodbus.org. Pliki które nas interesują znajdują
    > się tutaj:http://download.berlios.de/freemodbus/freemodb
    us-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: