troubleshooting Question

#pragma section

Avatar of smpoojary
smpoojary asked on
C++
6 Comments1 Solution3187 ViewsLast Modified:
What is the purpose of "#pragma section". In two different header files if same '#pragma section' is defined, then what will happen? If we defined in two different header files of same pragma, how to remove it as preprocessor #undef  xyz. I am getting following error
  typedef char                            system_name_def[10];
                                          ^
"D:\Clearcase\for_os upgrade\mr\smsc\lib/./../exports/include/smpdl.h", line 173: warning(382):
          typedef name has already been declared (with same type)

In file smpdl.h
===========
#pragma section system_name
typedef char                            system_name_def[10];

I need full description about the "#pragma section". Tried in google, difficult to digest.
ASKER CERTIFIED SOLUTION
ee_auto

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros