open source code compile problems - modbus stack

This is a discussion on open source code compile problems - modbus stack within the C Programming forums, part of the General Programming Boards category; I am using open source code for a modbus stack and when i compile it can't doesn't find the function ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    3

    open source code compile problems - modbus stack

    I am using open source code for a modbus stack and when i compile it can't doesn't find the function discriptions. Header = mb.h and in the include directory theres a mb.c that has the function code. I included the header and when i call a function it recognizes theres a prototype but is says theres no discription. What am I doing wrong? Else where I read i need to create an object file for mb.c code, how do i do that? Also i am using free modbus stack, any other recomendations of free modbus stack code I may look into using?

    Thanks

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    i have no clue what modbus is, but for the error youre getting, should you be linking to the library also? for example, if i wrote a program to use "math.h" it isnt enough to simply include the header, i would also have to link to the library.

    rather than describing your problem yourself, it would be better if you gave code examples of all header files youre using, the exact command and arguments your using to compile and link the code, and the exact compiler output. for example, i will bet money that the compiler isnt saying exactly "is says theres no discription", as you described.

  3. #3
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    977
    Modbus is a protocol for PLC communication. You might consider using libmodbus | Journal - SRA.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do you call another source code file?
    By nifear4 in forum C Programming
    Replies: 2
    Last Post: 10-28-2008, 01:16 PM
  2. How Can I compile 3 source code in 1 program ?
    By lord_cedrich in forum C Programming
    Replies: 8
    Last Post: 12-10-2006, 05:10 AM
  3. Open Source Licenses
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-10-2006, 09:53 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. C source code for int25 or code help
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 09-26-2001, 03:04 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21