Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » 'SetDefaultDllDirectories': is not a member of '`global namespace''('SetDefaultDllDirectories': is not a member of '`global namespace'' and undeclared Identifier)
'SetDefaultDllDirectories': is not a member of '`global namespace'' [message #1844008] Fri, 27 August 2021 05:19 Go to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 5
Registered: February 2021
Junior Member
Hi All,

I am trying to build the VC++ application in Eclipse IDE,

The Application is building in visual studio without any issues, able to generate exe and see the output as well,

When I am trying in Eclipse IDE with a same application It's throwing the following error :

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcore.h(644): error C2039: 'SetDefaultDllDirectories': is not a member of '`global namespace''"

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcore.h(644): error C2065: 'SetDefaultDllDirectories': undeclared identifier"

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcore.h(646): error C2065: 'LOAD_LIBRARY_SEARCH_SYSTEM32': undeclared identifier"

I referred some solution like, I need to set the pre-processor definitions,
so I set the _USING_V110_SDK71 in project->properties->C/C++->preprocessor->Preprocessor definitions(in visual studio 2015).

Could any one suggest me how to solve the above error's or how do I set this definitions in Eclipse IDE?



Regards,
Asha.S.D
Re: 'SetDefaultDllDirectories': is not a member of '`global namespace'' [message #1844016 is a reply to message #1844008] Fri, 27 August 2021 12:31 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
I would suggest examining the code in atlcore.h at lines 644 and 646.
Determine what exactly is/are the missing definition(s)
Then grep for the header containing it (them).
Then make sure they get included in future compiles.


This has nothing to do with Eclipse or CDT.
You might have a better chance at getting an answer at
stackoverflow.com or a site devoted to VC/Visual Studio.

The error is coming from VC and not CDT
I don't have the setting you made to define it
at least not with the path you mentioned
but I suspect it is for the Indexer and not the compiler
if it is an Eclipse setting.

The normal Eclipse settings start thusly:
Project --> Properties --> C/C++ Build
Project --> Properties --> C/C++ General

Are you using a third party plug-in?

When I used the Microsoft compiler in the distant past
the command line for it was called "cl".
I presume that is what you are using with Eclipse.


[Updated on: Fri, 27 August 2021 12:46]

Report message to a moderator

Re: 'SetDefaultDllDirectories': is not a member of '`global namespace'' [message #1844065 is a reply to message #1844016] Tue, 31 August 2021 04:52 Go to previous messageGo to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 5
Registered: February 2021
Junior Member
Hi ,

Thank you for the response,

>I would suggest examining the code in atlcore.h at lines 644 and 646.
>Determine what exactly is/are the missing definition(s)
>Then grep for the header containing it (them).
>Then make sure they get included in future compiles.

able to solve those error's while specifying the directive name in the project properties->C/C++ build->C++ compiler->Pre-processor->Defines(/D).

After this facing two more issues ,those are :

C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\afxres.h(17) : fatal error RC1015: cannot open include file 'winres.h'.

Any suggestions from your end will appreciate.

With Regards,
Asha.S.D


Re: 'SetDefaultDllDirectories': is not a member of '`global namespace'' [message #1844071 is a reply to message #1844065] Tue, 31 August 2021 07:51 Go to previous message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
I don't have the configuration you are using.
Obviously you are missing paths in the include path list.
That's the -I option in GCC and /I in VC (cl), IIRC.

Again, you are asking in the wrong forum.
This forum is for addressing problems caused by CDT and general how-to usage.
You are asking about specific usage.
A lot like asking an auto manufacturer to provide you with route information.

You really should ask these things elsewhere.
For example, googling: fatal error C1083: Cannot open include file: 'ctype.h'
turns up: https://stackoverflow.com/questions/42258311/cannot-open-include-file-ctype-h-no-such-file-or-directory
which may or may not solve your problem.


Previous Topic:C++ does not support int
Next Topic:is there anybody knows what is the project of the eclipse launchbar plugin
Goto Forum:
  


Current Time: Mon Dec 06 12:29:55 GMT 2021

Powered by FUDForum. Page generated in 0.01992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top