Thread: Type definition issues?

  1. #1
    Registered User
    Join Date
    Oct 2006

    Question Type definition issues?


    I'm attempting to use Apple's DNS-SD library in an application of mine. At this point, I'm just trying to compile dns_sd.h in my project without errors to set up for usage later. When I go to compile though, I get the following error at the following code, respectively:

    dns_sd.h|120|error: 'UINT8' does not name a type|
    dns_sd.h|121|error: 'INT8' does not name a type|
    dns_sd.h|122|error: 'UINT16' does not name a type|
    dns_sd.h|123|error: 'INT16' does not name a type|
    ||=== Build finished: 4 errors, 0 warnings ===|
    #elif defined(_WIN32)
    #include <windows.h>
    #include <stdint.h>
    #define _UNUSED
    #ifndef _MSL_STDINT_H
    typedef UINT8       uint8_t;
    typedef INT8        int8_t;
    typedef UINT16      uint16_t;
    typedef INT16       int16_t;
    typedef UINT32      uint32_t;
    typedef INT32       int32_t;
    I'm sort of at a loss on this; I take it that the compiler can't figure out the uint8_t type? Is this just syntax error to the compiler? I need a little insight to this problem.



    Compiler: mingw suite 4.4.1
    IDE: C::B 10.05
    Windows 7

  2. #2
    Registered User
    Join Date
    Oct 2006
    I've added a ! defined(__MINGW32__) to the elif, that has solved compilation. Then again, I haven't yet tried to use any of the dns_sd.h code with my own, so I can't be terribly sure if it'll actually work as I hope it will.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to pass a matrix/array from main to a function
    By Inukami in forum C Programming
    Replies: 7
    Last Post: 12-09-2009, 09:03 PM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. DLL compiling question
    By Noose in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2004, 07:16 AM

Tags for this Thread