Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. conflicting types for 'uint32_t' issue

conflicting types for 'uint32_t' issue

Scheduled Pinned Locked Moved C / C++ / MFC
helpworkspace
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    focusdoit
    wrote on last edited by
    #1

    I got the conflicting types error when I built the code, while, i searched the workspace, i only found one tyepdef, Shrink ▲ Copy Code typedef unsigned int uint32_t; in Eclipse, search:typedef*uint32_t i can't find where there is another typedef * uint32_t. Please help to give some ideas.

    L 2 Replies Last reply
    0
    • F focusdoit

      I got the conflicting types error when I built the code, while, i searched the workspace, i only found one tyepdef, Shrink ▲ Copy Code typedef unsigned int uint32_t; in Eclipse, search:typedef*uint32_t i can't find where there is another typedef * uint32_t. Please help to give some ideas.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      focusdoit wrote:

      Please help to give some ideas.

      Show the code that has the problem, and the exact error message(s).

      1 Reply Last reply
      0
      • F focusdoit

        I got the conflicting types error when I built the code, while, i searched the workspace, i only found one tyepdef, Shrink ▲ Copy Code typedef unsigned int uint32_t; in Eclipse, search:typedef*uint32_t i can't find where there is another typedef * uint32_t. Please help to give some ideas.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        focusdoit wrote:

        Please help to give some ideas.

        The error message implies that you are calling a function that expected a uint32_t so check the function signature of every function you are calling. I don't understand why nearly everyone that posts a question omits pertinent information. It would really help if you posted relevant code and error messages.

        F 1 Reply Last reply
        0
        • L Lost User

          focusdoit wrote:

          Please help to give some ideas.

          The error message implies that you are calling a function that expected a uint32_t so check the function signature of every function you are calling. I don't understand why nearly everyone that posts a question omits pertinent information. It would really help if you posted relevant code and error messages.

          F Offline
          F Offline
          focusdoit
          wrote on last edited by
          #4

          Thanks, it's a big project, i found the issue,

          new 1 (33 hits)
          XXX_Global.h: error: conflicting types for 'uint32_t'
          Line 17: typedef unsigned int uint32_t;
          gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
          Line 24: typedef __uint32_t uint32_t ;

          there are 2 tyepdef uint32_t

          L 2 Replies Last reply
          0
          • F focusdoit

            Thanks, it's a big project, i found the issue,

            new 1 (33 hits)
            XXX_Global.h: error: conflicting types for 'uint32_t'
            Line 17: typedef unsigned int uint32_t;
            gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
            Line 24: typedef __uint32_t uint32_t ;

            there are 2 tyepdef uint32_t

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            focusdoit wrote:

            i found the issue

            I'm happy to see you made progress. It's unusual to ask this type of basic question, you should change the variable type on those function calls to uint32_t and recompile. It would be great if you revealed the source code. You are forcing anyone that assists you to speculate.

            1 Reply Last reply
            0
            • F focusdoit

              Thanks, it's a big project, i found the issue,

              new 1 (33 hits)
              XXX_Global.h: error: conflicting types for 'uint32_t'
              Line 17: typedef unsigned int uint32_t;
              gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
              Line 24: typedef __uint32_t uint32_t ;

              there are 2 tyepdef uint32_t

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Then remove the one from XXX_Global.h.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups