Thread: open source code compile problems - modbus stack

  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
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    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, 12: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, 08: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, 02:04 AM

Tags for this Thread