473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

extern template + /Za

Hi,

Is there a way to enable *just* the extern template processing when
compiling with /Za?

Thanks!
Feb 2 '07 #1
4 1143
Is there a way to enable *just* the extern template processing when
compiling with /Za?
/Za disables non-standard language extensions. There is no way that I know
of to er-enable features one by one.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Feb 3 '07 #2

"Sean Connery" <Se*********@discussions.microsoft.coma écrit dans le
message de news: 29**********************************@microsoft.com...
Hi,

Is there a way to enable *just* the extern template processing when
compiling with /Za?
For now, VC++ does NOT support "extern" on templates, whatever compiler
switches you use or not (and it is not obvious wether it will support it in
a forseeable future).

Arnaud
MVP - VC
Feb 3 '07 #3
Arnaud Debaene wrote:
"Sean Connery" <Se*********@discussions.microsoft.coma écrit dans
le message de news:
29**********************************@microsoft.com...
>Hi,

Is there a way to enable *just* the extern template processing when
compiling with /Za?
For now, VC++ does NOT support "extern" on templates, whatever
compiler switches you use or not (and it is not obvious wether it
will support it in a forseeable future).
You are probably thinking about export, which isn't supported.

Extern, on the other hand, is an extension which is of course disabled by
/Za (disable extensions). And no, I don't know how to select individual
extensions.
Bo Persson
Feb 3 '07 #4

"Bo Persson" <bo*@gmb.dka écrit dans le message de news:
52*************@mid.individual.net...
Arnaud Debaene wrote:
>"Sean Connery" <Se*********@discussions.microsoft.coma écrit dans
le message de news:
29**********************************@microsoft.com...
>>Hi,

Is there a way to enable *just* the extern template processing when
compiling with /Za?
For now, VC++ does NOT support "extern" on templates, whatever
compiler switches you use or not (and it is not obvious wether it
will support it in a forseeable future).

You are probably thinking about export, which isn't supported.
Oups, sorry, my bad! So much for posting when you haven't slept of all night
;-)

Arnaud
MVP - VC
Feb 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sergei | last post by:
I ran into this problem. I needed to create an entry for access to a library of functions that are "extern C", and I just can't find the right syntax, if it exists at all ( I am using MSVC...
22
by: Ian | last post by:
The title says it all. I can see the case where a function is to be called directly from C, the name mangling will stuff this up. But I can't see a reason why a template function can't be...
9
by: tropostropos | last post by:
On Solaris, using the Sun compiler, I get annoying warnings from the following code. The problem is that I am passing a C++ member function pointer to the C library function qsort. Is there a...
2
by: evan | last post by:
Hi, I've got an easy one... I need to inline a few functions from one module to another. By looking at the compiled code I can see that the function is inlined if it is called from within the...
3
by: sks | last post by:
Hello all Is the usage of extern keyword valid for telling the compiler to NOT instantiate a template and to link it from an another binary? For example: Suppose module A's binary contains a...
3
by: manoj.pattanaik | last post by:
Hi, I am trying to compile following piece of code (bb.cpp) using aCC (HP ANSI C++ B3910B A.03.37) compiler on HP-UX 11.23. It gives error:485 //bb.cpp -- Starts #include <iostream> using...
1
by: arun | last post by:
Hello team, I know that extern keyword before template class or function delays the instantiation of that template declaration. However,, my question is does this utility only works for...
5
by: Anonymous | last post by:
I have a class that needs to be accesed by a C API. I need to expose some private methods to the C API : #ifdef __cplusplus extern "C" #endif void peek(Object_Handle handle); void...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.