Is there any way to force Sun C++ Preprocessor preserve whitespace?

Hello!
I'm preprocessing simple source file:
void test()
    int i;
}with command: CC -E test.cpp
and CC preprocessor eats all whitespace at the beginning of each line, like this:
void test()
int i;
}Is there any way to force CC preprocessor preserve whitespace?

You cannot use the C preprocessor on C++ code, for at least two major reasons.
1. The default -I options in CC are not the same as for cc. Try adding
#include <iostream>
#include <cstdlib>
to your example.
Even if you add the missing -I options, the conventions for finding the C++ standard headers are not known to the C preprocessor.
Example:
% cc -P -I/opt/SUNWspro/prod/include/CC/Cstd -I/opt/SUNWspro/prod/include/CC -I/opt/SUNWspro/prod/include/cc z.c
"z.c", line 2: cannot find include file: <cstdlib>
cc: acomp failed for z.c2. The predefined macros (-D options and predefined macros built into the compilers) are different for cc and CC.
In particular, the C compiler predefines macros saying it is a C compiler. The C++ compiler predefines macros saying it is a C++ compiler. Code that is conditionalized on whether it is compiled by the C or C++ compiler will give different results. If you add -D options for C++ macros, the results will depend on the way the tests are coded. That is, testing for a C compiler or a C++ compiler will not give mutually exclusive answers, as they would if you use the correct compiler. The Solaris headers have conditional code for C and C++.

Similar Messages

  • Is there any way to force time machine to keep retrying after disk i/o error?

    a little background to my problem:
    i've had a hard drive problem previously, and i managed get all the data off of my mac by trying and retrying to access the same files and also from my working time machine backup. after zeroing out and reformatting my drive and doing a clean install of Mavericks i had everything back up running no problems.
    recently, my macbook pro would be stuck and slow in recently imported iphoto pics so i figured my hard drive is really failing this time around
    i try to get a time machine backup to save what i can, but after a couple of tries time machine would just stop backing up and in console i would see a disk i/o error.
    is there any way to force time machine to keep trying to backup through the disk i/o error so i can save what i can before getting a new drive?
    edit: a little more info, i know i have a harddrive error from looking at the console, but when i do a verify disk in disk utility it comes up clean and even after doing a disk repair it comes up clean i still see disk i/o errors in the console.

    See:
    *http://kb.mozillazine.org/Preferences_not_saved
    Thee can also be a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (extensions.sqlite, extensions.rdf, extensions.cache, extensions.ini) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.<br />
    New files will be created when required.
    See "Corrupt extension files":
    * http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to do a compatibility check or see if there is an update.

  • Is there any way to force iPhoto to present faces by folder for identification rather than randomly?  Would provide better context for identification especially if a huge number of images is involved.

    Before I commit the time and energy required to load and tag faces in 25,000 images within iPhoto, I need some questions answered;
    Is there any way to force iPhoto to present faces by folder for tagging rather than randomly?  When so many images need tagging, over many years, the context of a folder helps with the identification. The work around is to load the images into iPhoto one folder at a time and do the tagging then.
    How do I get iPhoto to present the tagged faces by last name rather than first name? When so many faces will be identified, it is much easier to find people by surname, particularly when I share the library within the family. The work around is to enter names as last name and first name.  Being able to toggle the sort is much more desireable.
    Is there a way to export a portion of the library including faces?  I want to pass on portions of this huge 125 GB library to my family members.
    Since my family members will need an Apple computer to view the images and faces, they will likely have their own photo library.  So is there any way to combine two libraries and merge the faces?
    About 2/3 of my images have been scanned, so the date of creation is the scanned date rather than the date the photo was taken.  Will this mess up any sequencing or the retrieval of faces?

    If I want to carve off part of a library, I presume the way to do this is to make a copy of the library using PLM then go into iPhoto and delete what I don't want.  The result is the carved off portion.
    You don't need Library Manager to delete the portion you don't want.
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    If I want to merge two libraries, PLM implies that it will do this but will the Faces be merged too?
    I believe so.

  • Is there any way to force purchase an unsupported app?

    I'm currently stuck on OS X 1.7.5 since my MacBook Pro isn't compatible with anything more recent than that.
    However, I'll be upgrading to a new Retina MacBook Pro very soon and I'd like to purchase an OS X app that requires 10.8, since it's currently heavily discounted.
    Is there any way to force purchase it on my 10.7.5 system so that I'll be able to use it when I upgrade to a new Mac?
    Thanks!

    No.
    GB

  • IS THERE ANY WAY TO FORCE KEY COMMIT

    Hi:
    Is there any way in forcing when inserting/updating a record in a block to call KEYCOMMIT. For Example, if the user inserted/updated a record and before saving the user may quit the form. I would like to enforce the keycommit trigger to be called when the form is opted to close.

    Hello,
    Try the following in Key-Exit trigger:
    BEGIN
    IF :system.form_status = 'CHANGED' THEN
    DO_KEY('COMMIT_FORM');
    ELSE
    EXIT_FORM(NO_VALIDATE);
    END IF;
    END;
    Regards,
    George
    Hi:
    Is there any way in forcing when inserting/updating a record in a block to call KEYCOMMIT. For Example, if the user inserted/updated a record and before saving the user may quit the form. I would like to enforce the keycommit trigger to be called when the form is opted to close.

  • On a large monitor, the bookmarks toolbar is opening outside of the Firefox window itself - is there any way to force it to stay inside?

    Recently I installed Windows 7 on my computer, along with a device called a Triplehead2Go, which spoofs the operating system into thinking that the computer has one monitor attached (when it really has three). When the Firefox window is relatively small on the desktop and with excess space to the right, the bookmarks toolbar opens to the right (and extends outside of the window). This creates a problem for me, as the monitor bezels get in the way of navigation. When the Firefox window is all the way to the right of the desktop, the bookmarks toolbar opens inside of the window (as there is not enough space to the right for it).
    Is there any way to force this menu to stay within its boundaries?

    The screen dimensions are "right," but I don't want it to use up any more space on-screen than is in the window.

  • Is there any way to force the applet to load the file without using cache?

    Hi,
    I have the applet that renders some data from a file specified as the parameter. The problem is that the user can do something, that changes the input file and reloads the page, but the applet renders old data (from browser cache most probably)
    Is there any way to force the applet to load the file without using cache?
    Regards,
    Zdenek

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Disc in drive that Mini will not recognize, will not eject. Is there any way to force eject?  The computer says it's empty, but it's not.

    I have a disc in the super drive but cannot eject it because the Mini does not recognize that it's there. I've tried the eject button on top of the screen and in the dvd player controls. I wish there was an eject button on the machine. Is there any way to force eject?
    Thanks.

    RGA,
    Unfortunately, I do not believe that it is possible for a DAQ board to generate an AI Start Trigger from an analog trigger, but not be triggered itself until it receives a digital trigger.
    Spencer S.

  • Is there any way to force Firefox to remember passwords?

    As many have complained about, there is a growing trend for websites to prevent browsers, including Firefox, from remembering passwords. This is absolutely infuriating. Like most people, I have on the order of 100 passwords, and thanks to idiotic, overzealous IT guys who need to justify their own jobs, we are forced to constantly change them to ludicrous, impossible-to-remember combinations of symbols and numbers. (Does anybody really get their accounts stolen because some hacker sits down and tries to guess their password? Somehow I find that very, very hard to believe.)
    First world problems, I know. My question though is simple: is there any way to force Firefox to remember passwords? Perhaps an add-on or external program of some kind? I know there are password manager programs, but the last time I checked, those were all but worthless and didn't work as well as the built-in Firefox support for remembering passwords. Thanks for any help.

    hello andrew, yes you can either [https://addons.mozilla.org/firefox/addon/remember-passwords/ install an addon] or [https://www.squarefree.com/bookmarklets/forms.html#remember_password use a bookmarklet] to circumvent this restriction.
    in an upcoming version of firefox, this functionality will also be built-in directly into the browser: http://www.ghacks.net/2013/12/24/firefox-29-save-fill-autocompleteoff-passwords/

  • Is there any way to force the following initial view...

    ..."fit to page" + "two pages per screen - but only if there's room for two"?
    In other words, I want the page to fit in the screen upon initial view, but I also see a lot of wasted real estate all around that could, most of the time, fit a second page. However, I don't want the two pages to count against the "fit" -- meaning, on narrower screens, the priority should go to fitting the first page (and not showing the 2nd) rather than fit both pages at all costs.
    Is there any way to ask Acrobat to do this?

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Is there any way to force a Role Check for authorization from a Ztable

    Hi all,
    I have an issue that deals with Authorization check using a role. I have to know if there is any way to make a Role force to check if an entry exists in a Ztable.
    Eg. A User is assigned a role Z:Ztable_check. Can we now force this Role to somehow check for a particular entry in a Ztable which has a Username and its Corresponding Authorized Cost center. Can the role check from the Ztable and allow the user to view only those cost centers that he is allowed to.
    Don't know if this is even theoretically possible.

    hi
    see if this helps you
    <b>The SAP Authorization Concept
    Authorization checks are a means of protecting functions or objects in the R/3 System. The programmer of the function determines where and how these checks are made, while the user administrator determines (within the framework defined by the programmer) who can execute a function or access an object.
    The terms central to the SAP authorization concept are:
    Authorization field
    This is the smallest unit against which checks can be made. The programmer can create authorization fields by selecting Tools &#8594; ABAP Workbench &#8594; Development &#8594; Other tools &#8594; Authorization objs &#8594; Fields.
    Example: ACTVT and CUSTTYPE.
    Authorization object
    An authorization object groups together 1 to 10 authorization fields which can then be checked as a combination. The programmer can create authorization fields by selecting Tools &#8594; ABAP Workbench &#8594; Development &#8594; Other tools &#8594; Authorization objs &#8594; Objects.
    Example: The authorization objekt S_TRVL_BKS groups together the authorization fields ACTVT and CUSTTYPE.
    Authorization
    An authorization is a combination of permitted values for each authorization field of an authorization object. The user administrator creates authorizations by selecting Tools &#8594; Administration &#8594; Maintain users &#8594; Authorization.
    Example:
    S_TRVL_CUS1 is an authorization for the authorization object S_TRVL_BKS with the values
    for customer type (CUSTTYPE) and
    02 for activity (ACTVT).
    Users who have this authorization are allowed to change the bookings of all customers.
    S_TRVL_CUS2 is an authorization for the authorization object S_TRVL_BKS with the values
    B for customer type (CUSTTYPE) and
    03 for activity (ACTVT).
    Users who have this authorization are allowed to display the postings of all customers.
    Authorization profile
    An authorization profile represents a simple workplace in the context of authorizations. An authorization profile contains authorizations for the authorization objects a user needs to operate effectively in a restricted task area. The user administrator creates authorizations by selecting Tools &#8594; Administration &#8594; Maintain users &#8594; Profiles.
    User master record
    Your user master record is checked when you logon to the R/3 system. Through the authorization profiles, this provides restricted access to the functions and objects of the R/3 System. The user administrator creates authorizations by selecting Tools &#8594; Administration &#8594; Maintain users &#8594; Users.
    Authorization check
    The programmer can perform authorization checks with the ABAP command AUTHORITY-CHECK by specifying the value to be checked for each authorization field defined. The system then scans the profiles in the user master record for the authorizations specified. If one of the authorizations found for all fields of the authorization object covers the values specified by AUTHORITY-CHECK, the check was successful.
    Example: Check whether the user is allowed to change the postings of business customers:
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
                    ID 'ACTVT'    FIELD '02'
                    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
      MESSAGE E...
    ENDIF.
    If the authorization S_TRVL_CUS1 exists in the user's master record, the authorization check is successful. However, if the authorization S_TRVL_CUS2 exists, but not the authorization S_TRVL_CUS1, the check fails.
    Authorization assignment
    The system administrator is responsible for assigning user master records with the correct authorizations. You should use the Profile Generator to maintain authorization profiles. However, you can also change them manually. Each authorization object contains authorizations. These are grouped together in authorization profiles such that each authorization profile represents a job description, for example 'flight reservations clerk'. You assign one or more authrization profiles to each user master record. You can assign an authorization to as many authorization profiles as you like, and an authorization profile to as many composite profiles and users as you like. Composite profiles are used in manual authorization maintenance, and form a further division in the authorization structure. However, they are not strictly necessary.
                      User master record
                    Auth. profile  Composite auth. profile
               Authorization              Auth. profile
                 Values              Authorization
                                   Values</b>
    plz reward if satisfied

  • Is there any way to force a sync from your phone to Google Contacts?

    I have contacts that are in my phone, that won't sync back to Google Contacts.  The phone numbers have been updated, email addresses have been changed, but Google contacts still doesn't show the new information.
    I have tried to do the manual sync, I have waited a week...nothing works...and now I fear that I'll lose data.
    The information on the phone is the most u-to-date, but there's no way to either manually back this information up, nor is there a way to sync it.
    I have hundreds of contacts and don't want to have to go line by line comparing what's in the phone, to what's in Google contacts...

    Please check you contact name in the device and verify if the names does not start with none alphabetic characters (e.g. @, &, *, etc).  This characters will actually stop the sync process and will not be able to successfully complete the transfer of data. Do the same thing with the contact data you have online just to be sure..
    If that it still doesn't work, delete your Google account on the device, restart, and then recreate the same account.
    Let me know how it goes... 

  • Is there any way to force a PXI6115 to generate AI Start Trig on PFI0 but not actually trigger on it?

    I am using a PXI chassis with 10 6115's and a 6608 counter/timer. I need to use analog triggering on one of the 6115 AI channels. The particular channel will depend on the test setup, so I can't just pick one and hard-wire it. This analog trigger will be the master timing reference for all of the boards.
    However, I need to trigger the 6115's at different times (e.g., trigger three at the same time and seven at some later time) so I'm routing the AI Start Trigger from whichever is the trigger channel (one of the first 16 channels) to RTSI0. The first five counters are then GATEd on RTSI0 and the counter OUTs are hardwired to the 6115's PFI0s in groups of two. So,
    basically, one of the 6115s sends AI Start Trigger to the five counters which, in turn, generate five delayed triggers that are sent to the 10 6115's.
    My problem is that I can't use a zero delay on the counter, so I can't get the 6115s to trigger at the same time, if need be. Whichever one generats the analog trigger will always be slightly ahead of all of the others that I would like to trigger at the same time.
    So my question is this: can I somehow force one of the 6115's to generate the AI Start Trigger across RTSI0 but not actually trigger itself until it gets the trigger back from the counter/timer? This way, the delay will still be there but all of the boards can get a simulataneous trigger if need be.
    Thanks,
    RGA

    RGA,
    Unfortunately, I do not believe that it is possible for a DAQ board to generate an AI Start Trigger from an analog trigger, but not be triggered itself until it receives a digital trigger.
    Spencer S.

  • Is there any way under the sun to have an iPhoto library on a network drive?

    A "working," "live" managed library, that is - not a backup.
    As far as I can tell:
    1. iPhoto library doesn't work on a typical NAS as the library can only be run on an OSX Extended format.
    2. Recommendation is clearly to have it run on a local drive.
    BUT -
    Call me lazy, or simply one who cherishes comfort (heck, that's one of the main reasons I moved to Apple in the first place!), but I do all my work either on a MBA or a rMBP, and I love exploring every nook and cranny at home. I do *not* want to have to directly connect a cable and stay still for any period of time during which I'm using iPhoto (or Aperture, for that matter).
    So:
    Can connecting an OSX Extended formatted drive to Time Capsule (through USB) potentially work? WIll it now be an issue that this disk will be regarded by TC as an extension of itself and now cannot be backed up?
    Seriously: with inflating image libraries and laptop/mobile proliferarion, more and more people are going to be working this way - not to mention wanting to share the same library across several computers/devices/users.
    Is there really no solution?!?!...(Although someone mentioned in another discussion that a similar problem is now "solved automatically" in Mavericks - anyone know anything?)

    You might want to look at IDimager.com | Photo Supreme. It runs on a "referenced" catalog basis much like Media Pro 1 does  and can have it's source files on any volume including NAS servers. 
    There's a demo that you can try.  The customer support people gave me these links:
    http://www.idimager.com/Trial/QuickStart-Cataloging.pdf
    http://www.idimager.com/Trial/QuickStart-FileManagement.pdf
    http://www.idimager.com/Trial/QuickStart-GEOTagging.pdf
    http://www.idimager.com/Trial/QuickStart-Advanced%20Filtering.pdf
    I've not tried it as yes so can't comment further.
    OT

  • Is there any way to force the "Save As" dialog to automatically select only the filename, not the filename+extension?

    See
    https://bugzilla.mozilla.org/show_bug.cgi?id=426680
    or more clearly stated here:
    https://bugzilla.mozilla.org/show_bug.cgi?id=480522
    Two years later this "bug" (not exactly a bug, but a pain in the butt nonetheless) is still not resolved.
    Yes, I'm running the latest version of Firefox (6.0.1). And I'm running it on a MacBook Pro running OS 10.6.7.
    The selection is made correctly in other applications; this problem is Firefox-specific, and occurs even when no extensions or plug-ins are installed.
    Except that when I had my last computer, I found a work-around somewhere that fixed it, but for the life of me I can't recall what kind, how, or where.
    Any help with solving this irritating issue would be greatly appreciated.

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

Maybe you are looking for

  • New Mac OS Server on network, Windows box can't see other Macs anymore

    I just put a Mac mini server on my network and the only services I have enabled are SMB, AFP and Open Directory. Before I put the server on the network (and if I turn the server off) the Windows 7 Pro machine I have on the network used to be able to

  • Payment terms in IR not displayed

    Dears, Payment terms in IR after saving is not getting displayed, why? When we create IR, system will default payment terms from PO. Then after saving the IR and when displayed in MIR4, systems does  not show the payment terms. Is it std SAP behavior

  • Check numbers for individual invoices in PAYR

    Hey Folks: I have 5 invoices cleared against one ZP document ( clearing document) with payment method being check. I could not find the check information for the invoice line items which got cleared against ZP document in PAYR table. Would someone gi

  • Problem During Extraction

    Hello All, I tried enhancing the 0customer_Attr  datasource through user exit EXIT_SAPLRSAP_002. I had entered 4 fields and tried to fill the data to these fields by writing the abap code. But after in bw the values of the fields which i have entered

  • Ipad Music Not Distinguishing Genres

    Hello. I have an Ipad Mini and have two different genres of music (Piano and Instrumental). When I open Music->Genres and select either Piano or Instrumental, I then select the Artist associated with that genre, finally it shows all albums that have