Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5982611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:06:42+00:00 2026-05-22T22:06:42+00:00

I have some trouble with #define statements in my C++ code, however I’m not

  • 0

I have some trouble with #define statements in my C++ code, however I’m not familiar how to handle this in VC++:

>filetaint.cpp
1>.\filetaint.cpp(272) : error C2872: 'UINT32' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\basetsd.h(82) : unsigned int WIND::UINT32'
1>        or       '..\..\include\gen\types_foundation.TLH(80) : LEVEL_BASE::UINT32'
1>.\filetaint.cpp(275) : error C2872: 'UINT32' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\basetsd.h(82) : unsigned 
[...]

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

So the issue is that, that the compiler doesn’t know whether to use the definition from my Windows SDK “basetsh.h or from types_foundation.h. I want it to use the latter. Is there any construct in C++ namespaces to tell the compiler what to chose? I want to avoid to patch the SDK or the library itself.

#include "filetaint.h"
#include "dift.h"

using namespace WIND;

The types_foundation.TLH contains the right statement. It is already in the VC++ paths in VS 2008. I’m a little confused here… but I guess I have to find a way to tell my compiler to ignore the SDK for the time being ;).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:06:43+00:00Added an answer on May 22, 2026 at 10:06 pm

    I want it to use the latter.

    Then qualify your usage with the namespace name: LEVEL_BASE::UINT32.

    Alternatively, remove the using directives from your code and qualify all of the names that you use from the libraries. It’s a good idea to avoid using directives in most cases: they are far more trouble than they are worth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm migrating to Nhibernate 2.0 GA but have some trouble with setting cache expirations
I am developing a small windows app, but have some trouble deciding whether to
I'm currently working on project with Haskell, and have found myself some trouble. I'm
I am having some trouble with the Google Maps API . I have an
I have created some rounded navigation tabs using CSS and am having trouble when
I have some code for starting a thread on the .NET CF 2.0: ThreadStart
I have some classes layed out like this class A { public virtual void
I'm having some trouble with some struct typedef declarations in a header file not
I have some code in a library which has to internally work with wstring,
I have some trouble for choosing the right type of exception to throw when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.