SunStudio on Linux: C functions are not in std:: namespace

Hi,
i'm using SunStudio 12 compilers on a Debian Etch x86 host and have some compilation problems.
The compilers complains that C functions are not in std:: but only in the global namespace.
I thought the standard was that they are in both namespaces.
I suspect the issue may be related to system headers since the problem never occured with Sarge nor Solaris.
Anyone as some hint to solve this problem ?
I there a "clean" workaround ?
Thanks,
Aurelien

Let me clarify Paul's comments.
If you include a C-style header like <stdio.h>, you should get names in both namespace std and in the global namespace.
That is, the following program should compile with Sun C++: #include <stdio.h>
int main()
    std::printf("Hello ");
    printf("world!\n");
}If you include the C++ versions of the C headers, like <cstdio>, using Sun C++ you get names only in namespace std -- except on Linux.
The g++ compiler, particularly on Linux, does not follow the same rules. The <stdio.h> header puts names only in the global namespace, and <cstdio> puts names in both namespaces. To allow compilation of programs on Linux that compile with g++, Sun C++ tends to follow g++ rules where they are looser than what the C++ Standard says. (For some definition of "looser".)
The most portable approach is to use the <xxx.h> C-style headers, and do not qualify the names from the headers with "std::".
That is, the following program should compile everywhere: #include <stdio.h>
int main()
    printf("Hello ");
    printf("world!\n");
}

Similar Messages

  • My functions are not showing up on my screen

    Hi I am not exactly sure how to describe this, I just installed cs6 and my functions are not showing up on my live preview. I have never seen anything like this before.
    here is my file, I have filled it in hot pink. This is how it shows up in the layer panel, bridge and in my explorer.
    here is a screen shot of what I see on my screen. If you look closely, I wrote "test" and it shows up in the layer panel but still nothing but a transparent background shows up on my live preview
    Please tell me how to fix this issue!!!

    Pictures from where?

  • Time series functions are not working for fragmented logical table sources?

    If i remove that fragmented logical table sources, then its working fine.
    if any body know the reason, please let me know.
    thanks and regards,
    krishna

    Hi,
    is because the time series function are not supported for the framentation content, see the content of the oracle support:
    The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
    Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
    Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
    Regards,
    Gianluca

  • AcroPDF ActiveX print functions are not working with Adobe Reader 9.2 / Actobat Reader 9.3

    AcroPDF ActiveX print functions are not working with Reader 9.2/9.3. Tried ActiveX print functions like printPages(), printAll(), printWithDialog(), none of them is working. Tried on platforms: XP 32 bit and Win7 32 bit. These print functions all work fine with Adobe Reader 9.1.0. or 8.2.0 or 8.1.0 on XP 32 bit or Win7 32 bit.
    The way I have my setup: I have created a C/C++ project with AcroPDF MFC ActiveX classes. I have created an AcroPDF object in there, and then calling it's LoadFile() function passing a pdf file in the parameter. Then calling the printPages() or printAll() function. With Adobe Reader 9.1.0. or 8.2.0 or 8.1.0, printing is starting through the default printer without any problem. As soon as I update the reader version to 9.2 or more, the same code stops working.
    Is anybody noticing any similar issue? Any info on this will be highly appreciated. Thank you!

    Unfortunately printWithDialog() is also not working. Actually none of the print functions like Print(), printWithDialog(), printPages(), printPagesFit(), printAll(), printAllFit() are working. All of them works fine though with older reader.
    BTW, what security related changes are there for printPages() and printAll()? Can you please elaborate on that? Is there any workaround?

  • Satellite C660-17L - Some TouchPad functions are not working

    My touch pad functions are not working:
    - I can't use it to scroll up and down
    - I can't use it to zoom.
    What should I do to fix it?

    Yes the model number is Satellite C660-17L
    And no I didn't install the touchpad driver.
    I Have had this laptop for less than a month, I started it one day and tried to scroll but it didn't work.
    Also i tried to search for the advanced settings under the mouse option but I couldn't find it.
    When I enter the search directly into the search bar, the mouse option comes up but when I click on it, it asks me if I want to uninstall the synaptics driver.
    I have no idea what this means but I click no and it comes up with all the mouse setting options.
    What should I do now?

  • My copy and paste functions are not working, does anyone know why this might be happening?, my copy and paste functions are not working, does anyone know why this might be happening?

    my copy and post functions are not working, does any one know why this may be happening and what I could do to fix it? Thanks!

    Have you tried rebooting?

  • Time series functions are not working in OBIEE for ESSBASE data source

    Hi All,
    I am facing a problem in OBIEE as I am getting error messages for measure columns with Time series functions(Ago,ToDate and PeriodRolling) in both RPD and Answers.
    Error is "Target database does not support Ago operation".
    But I am aware of OBIEE supports Time Series functions for Essbase data source.
    using Hyperion 9.3.1 as data source and obiee 11.1.1.5.0 as reporting tool.
    Appreciate your help.
    Thanks,
    Aravind

    Hi,
    is because the time series function are not supported for the framentation content, see the content of the oracle support:
    The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
    Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
    Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
    Regards,
    Gianluca

  • 9iAS  java functions are not working

    Dear All.
    I’m using oracle 9iAS Release 9.2.0.1.0 and JServer Release 9.2.0.1.0. I’m using java functions (eg. Array, pop, push method and trim function) in my JavaScript section.
    But these functions are not working. When run the page it work up to that function and stuck. Functions are written properly.
    I would be much-appreciated .if you could help me to solve this problem..
    Regards,
    Nish

    Are you sure you uncommented and changed jvm.include.CLASSPATH=1
    in the jvm12.conf when you added your classpath there?
    The preferred way to do this would be to create a .war and deploy it instead. Then you can put your beans in the WEB-INF/classes directory and the application wont have conflict problems if you decide to create virtual servers later.

  • Problems with DHTML popup: Required DHTML functions are not supported in this browser.

    When I try to open a Date calendar I receive this message:
    Required DHTML functions are not supported in this browser.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Popup saying RTC functions are not possible

    Hi,
    i have portal ep6 sp10. After my server restart, i log on with an user id, and logoff. and When i login agian..the popup comes up and says that the user is logged on some where else, thus the Real time collaboraion functions are not possible. But i have successfully logged off previously.
    Any one ran into this kind of scenario. Can you point me in right direction..I was guessing that previous logoff didn't kill the session. Where can i track the session of an user. Any suggestions are appreciated..
    thanks
    Chiru.

    Chiru -
    You can check whether your user has a session open in the Visual Admin console.  Navigate to Server -> Services -> Security Provider -> Login Sessions.
    If needed, you can terminate sessions by clicking on the pencil to change to write mode and them selecting the session and clicking on the Terminate Session button.
    Enjoy!
    Kyle

  • Hi sunil i used this code but showing error called (startingrow)compile time sub or function are not defined please

    i wanted to update data of excelsheet to mysql database  but displaying an compile time error as sub or functions are not defined           -------------->(startingrow)     please help me out 
    Dim cn As New ADODB.Connection
    Dim number, nRows, wds_id, production_data
      cn.ConnectionString = "Provider = MSDASQL.1; Persist Security Info = False;Data Source = mysql32; User ID = root;Password = bmx1; Initial Catalog = wds"
      cn.CursorLocation = adUseClient
      cn.Open
     Dim i As Integer, QryTxt As String
     i = StartingRow(wds_id) ---------->In this line
     Do Until i = Sheet1.Rows.count
      If Sheet1.Cells(i, 1) = "" Then
       nRows = i - 1
       Exit Do
      End If
      i = i + 1
     Loop
     For i = StartingRow(wds_id) To nRows
            QryTxt = QryTxt & "update tblprod_agr_006 set wds_id1 = '" & Replace(Sheet1.Cells(i, 1), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column2 =  '" & Replace(Sheet1.Cells(i, 3), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column3 =  '" & Sheet1.Cells(i, 4) & "'," & vbCrLf
            QryTxt = QryTxt & "where conditioncolumn =" & "'" & Sheet1.Cells(i, 2) & "'" & "" & vbCrLf
     Next
     cn.Execute (QryTxt)

    First off, is this relating to a Microsoft SQL Server database, or a MySQL database?  I see several references to MySQL in your example.
    Your code uses a function StartingRow() which isn't a built-in T-SQL function.  So, if it is a function you've defined, you need to make sure it's properly referenced in order to use it.  (may need a 2 or 3 part name if it isn't in the default
    schema or the same database.)
    Microsoft SQL Server Storage Engine PM

  • I've recently downloaded Lion and find my Microsoft excel, word, entourage and powerpoint do not function. It says these functions are not now supported. Why and how do I get to use them again?

    I've recently downloaded Lion and find my Microsoft excel, word, entourage and powerpoint do not function. It says these functions are not now supported. Why and how do I get to use them again?

    philippnoe wrote:
    What a "great" Program which is supporting many nice but not mandatory things but is not supporting a Program which is used day by day from many users ... and especially this Program is also sold officially by apple !!!
    Yeah!, Why, Lion won't even run my old DOS programs! 

  • Nested aggregate functions are not allowed

    I need a calculation that divides a parcial value (based on a condition) by the total. It is something like that:
    CALCULATION 1:
    PARCIAL_VALUE = CASE WHEN DURATION >= :PARAMETER THEN MEASURE_VALUE ELSE 0 END
    CALCULATION 2:
    DIVISION = CASE WHEN MEASURE_VALUE = 0 THEN 0 ELSE PARCIAL_VALUE / MEASURE_VALUE END
    Calculation 1 only works if I use a SUM before the CASE. If I don't use the SUM, the calculation doesn't aggregate.
    I believe I also should add a SUM before the CASE of Calculation 2, but I can't. I got the error: Nested aggregate functions are not allowed.
    I tried to merge the two calculations, but I got the same error. I also tried to create a calculated item in detail level in the Administrator, but it didn't work too.
    How can I reformulate this calculation in order to avoid this error?

    I got the correct result with this formula:
    CALCULATION 1:
    PARCIAL_VALUE = SUM(CASE WHEN DURATION >= FIXED_VALUE THEN MEASURE_VALUE ELSE 0 END)
    CALCULATION 2:
    DIVISION = PARCIAL_VALUE / SUM(MEASURE_VALUE)
    It didn't return a division by zero error.
    The calculation works and correctly aggregates the data when I use a fixed value in the CASE. When I change the fixed value by a parameter, the calculation 1 works perfectly, but calculation 2 doesn't aggregate.

  • What does 'init functions are not allowed in this objset' mean and how can it be fixed?

    We have added some init functions to the beginning of the obj.conf file so that we can proxy off to Weblogic.
    However when we try to run the Web server we get an error message 'init functions are not allowed in this objset'.
    The syntax seems to be correct. Has anyone any idea how this can be fixed?

    You are probably using iPlanet Web Server 6.0 or higher; starting with 6.0, the web server does not allow Init directives to appear on the obj.conf file. Instead, place your Init directives in the magnus.conf file.
    This is documented in the Installation and Migration Guide at http://docs.iplanet.com/docs/manuals/enterprise/50/ig/migrate.htm#20780 in the Programmer's Guide at http://docs.iplanet.com/docs/manuals/enterprise/50/pg/1-intro.htm#13565 and in the NSAPI Programmer's Guide at http://docs.iplanet.com/docs/manuals/enterprise/50/nsapi/02_objcn.htm#13097

  • Partner determination functions are not determine in sales order

    Dear Sap Gurus,
    I have made a new partner function (P2) and have been configure it in partner determination procedure, although i hv made new customer master for the same account group. All th partner function are showing in the customer master data but these are not determine in sales order, one error is coming...this partner procedure is not defined.......kindly give me advide how to resolve this problem.
    Regards
    Parul Deshwal

    Hi
    Have you assigned the Partner determination procedure to your sales document type?
    Also have you assigned the Partner function to your Partner determination procedure.
    Also do the same to the sales order item partner determination
    regards
    Prashanth

Maybe you are looking for