Question about C99 mode? ( C )

I get error when I try to compile the following program:
#include <stdio.h>
int main (){
for (int k = 1;k<10;k++){
printf("hi");
return 0;
it says
error: 'for' loop initial declaration used outside C99 mode.
Is there a way to change the default mode to allow this ?
Thanks
( always in C , not C++ )

Xcode has the build setting C Language Dialect, which is part of the Language collection, that you can set to use the C99 standard. If you're running Xcode 2.1 or later, you can use a configuration settings file that sets the dialect to C99 for all projects that use the settings file. The setting name for the settings file is GCCC_LANGUAGESTANDARD.
  Mac OS X (10.4)  

Similar Messages

  • Questions about TDM mode on an iMac

    Hi!
    I'm thinking about buying 2009-2010 27" iMac, it should replace my home server, display and audio system.
    Primarily, I will use it in TDM mode, and have some questions about it.
    Firstly, what about sound? iMac receives it over Mini DP, right? And if I'll connect HDMI device to iMac (PS3, looking forward to Xbox One, and MacBook Air over hdmi adapter), sound will be played over desktop's speakers, as it should?
    Second, and most interesting part: if connection scheme is MacBook Air->Mini DP to HDMI adapter->HDMI cable->HDMI splitter->HDMI to Mini DP cable->iMac in TDM, everything will work fine?
    Also interested about cables. For example, this cable http://dx.com/p/cy-dp-021-mini-displayport-to-hdmi-audio-extender-cable-white-1- 8m-177527 supports up to 1920x1200, but basically, both DP 1.2 and HDMI 1.3b supports 2560x1600. Should I look for another cable or this one will support 2560x1440 resolution?)

    Beta software is always a risk. Some beta releases are close to finished status and quite polished and bug-free, while others have significant and often crippling bugs. Not that software in official release may not also have problems, but the entire point of beta releases is to identify bugs prior to an official release, so bugs are much more likely. Sometimes you won't encounter any problems, but other beta software may take your machine down completely; it all depends on what the software is intended to do, how skilled the programmers are, and where in the beta cycle the software may be. A "public preview" release from a major developer such as Microsoft, Apple, or Mozilla is less likely to have major problems, but it's no guarantee.
    It's always wise to be very cautious about using any beta software, and to take extra precautions, particularly making backups much more often and preferably not using your main computer, when running any beta software. I would recommend never, repeat never, running beta software on any computer on which you depend on a daily basis for work or critical schoolwork. If you must, make a clone of your entire hard drive to another volume before installing any beta, so you can recover your system in case of major problems.
    Message was edited by: Dave Sawyer

  • Question about BART - mode of the manifest

    Good Day,
    I have looked into the manifest of the bart generated as follows, get confused about the mode(which is permissions), why there is a prefix (3 bits normally, for example 100, 120, 106) before the permissions (such as 755, 600, 777), what are those bits meaning? Appreciate for any help!
    /etc D 3584 40755 user::rwx,group::r-x,mask::r-x,other::r-x, 3c6803d7 0 3
    /etc/.login F 524 100644 user::rw-,group::r--,mask::r--,other::r--,
    3c165878 0 3 27b53d5c3e844af3306f1f12b330b318
    /etc/.pwd.lock F 0 100600 user::rw-,group::---,mask::---,other::---,
    3c166121 0 0 d41d8cd98f00b204e9800998ecf8427e
    /etc/.syslog_door L 20 120777 user::rw-,group::r--,mask::rwx,other::r--,
    3c6803d5 0 0 /var/run/syslog_door
    /etc/autopush L 16 120777 user::r-x,group::r-x,mask::r-x,other::r-x,
    3c165863 0 0 ../sbin/autopush
    /etc/cron.d/FIFO P 0 10600 user::rw-,group::---,mask::---,other::---,
    3c6803d5 0 0

    Simon2k7 wrote:
    > But why doesnt DW8 automatically
    > insert the mark of the web all the time.
    Because it works only when testing the file locally. You
    should remove
    it before uploading the file to your remote server as it has
    no effect
    on the way others see your pages.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • A question about bridge mode

    I have a DSL modem which is set to distribute IP addresses. Wireless network is off.
    A Time Capsule (connected to DSL modem by Ethernet) which is in bridge mode and creates the wireless network.
    Question: should I be able to connect to Internet through a Ethernet connection at the Time Capsule?
    thanks
    Ken

    I would first verify that the Time Capsule is setup as a bridge as follows:
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Manual Setup
    Click the Internet icon
    Connect Using = Ethernet
    Connection Sharing = Off (Bridge Mode)
    If all appears to be well, try connecting the ethernet cable from your gateway to one of the other ports on the Time Capsule. In other words, if you have it connected to the WAN port (circle icon) now, connect to one of the other three LAN <-> ports.
    Truth be known, when the Time Capsule is setup in bridge mode, all the ports behave the same. It does not matter which you use. If the WAN port has taken a hit from a nearby lightning strike or a power surge, the other 3 ports may still be operational.
    Any luck?
    Message was edited by: Bob Timmons

  • Questions about Airplane Mode

    I have 3 questions.
    1. When airplane mode is enabled, does the phone still ring for the caller? Does the phone ring at all when I have it?
    2. Can I still accept Text messages? Or can I send out messages?
    3. Can I enable Wifi and go on certain apps that need Wifi? Such as a chat App?
    Thanks.
    Post relates to: Pre Plus p101vzw (Verizon)
    This question was solved.
    View Solution.

    1, 2. Airplane mode disables all radios. You can't make or receive calls or messages.
    3. You can enable WiFi. Any apps that need WiFi should still work.

  • Question about protection mode in Stdby env.

    Hi,
    In a standby environment, can we have primary database working in two protection mode simultaneously.
    e.g. There are 2 standby databases for a primary database. One is situated in another city (Stdby_A) connected via a slow link and another is in the same data center connected via 1Gbps link (Stdby_B).
    Can we have primary database working in Maximum Performance mode for 'Stdby_A; and in maximum protection mode for 'Stdby_B'.
    Thanks
    Amit.

    thanks,
    what could be the best possible solution in above scenario.
    Regards,
    Amit

  • Question about blend modes

    I have a video clip of a guy in front of a white screen (originally it was a green screen but I replaced the background with a white wall). I want to add a graphic behind him and I am not sure which blend mode to use. The graphic is also based on a white background. Would it be easier if I just had an alpha channel? Can you even export a video clip out of FCP with an alpha channel?

    But if you're keying in FCP, why not create the Motion project with the proper aspect ratio, or adjust it once you bring it into FCP?
    You're not gonna get there with blend modes...
    Patrick

  • Question about Standby modes (S1 or S3)

    Hi all,
    Can somebody explain what S1/POS and S3/STR standby modes are? my system is set at S1/POS and when I press standby everything shuts off except for my case fans and power supply fan.
    If i set it to S3 will that turn off everything like I want it?
    Also, what is APIC mode ? should i enable it?
    Thanks

    Well My Bad then , And Thank You For the Heads up Maesus .... The only thing that I was trying to Suggest, is to Stay Away from Choosing the "Stand-By" Mode, that Pops Up When you Initiate a Winows Shut-Down, I say this Because a Number of us Using Higher Performance Memory, along with a Slightly Overclocked FSB, Will Result in the PC Going into an Infinate On-Off Loop, Until you Reset the C-MOSS, I'm Sure those of who this has happened to can Attest that this is one of the Scariest things to Happen to you (As far as the PC is Concerned) As you have NO Control (Even if you hit the Power Button ..On-off-on-off-on-off-on-off-on-off , And this is all it does until you Clear the C-MOS , And I am Sure that this is NOT to Good For either the CPU or the PSU ...............Sean REILLY875

  • Basic questions about connection sharing and radio mode

    I just got TC and have a couple of basic questions.
    At home I have a D-Link ADSL modem/router (no wifi) plugged into the wall, and would like TC to provide wifi. I've connected the WAN port to some LAN port of the router and everything works fine. The intented usage of the setup is wifi-only. Would you recommend TC to do DHCP/NAT? Or is Bridge mode better? In the latter case I don't fully understand who's routing the wifi network (though it actually works).
    Second question is about radio mode. My wife has an iBook G4 that is not capable of talking 801.11n, so I selected the n mode compatible with b/g. In that mode my black MacBook will still be able to talk 801.11n with TC? The iBook has very low usage, it is fine that computer uses 801.11g for TC, but I'd like the MacBook to go full-speed. (If that's not possible I'd ponder purchasing an 801.11n adaptor of some sort for the iBook.)

    Would you recommend TC to do DHCP/NAT? Or is Bridge mode better?
    It doesn't matter.
    In the latter case I don't fully understand who's routing the wifi network (though it actually works).
    The D-Link modem/router.
    In that mode my black MacBook will still be able to talk 801.11n with TC?
    Yes. It will only suffer lower bandwidth if the iBook G4 is actively connected.

  • Some questions about configuration in MAX.

    Hello,everyone!
    I have some questions about configuration in MAX(I am a jackaroo for motion control development),I hope I can get your help.
    I use PCI-7344+UMI-7764+Servo amplifier+Servo motor,my MAX version is 4.2 and I use NI-Motion7.5
    My question as following:
    1,In Axis Configuration,for motor type,why I must select stepper but not servo?my motor is servo motor!If I select Servo,my motor can't run,I don't know why.
     If I select stepper,though motor can work but I can't test encoder in MAX.
    2,In Stepper settings,for stepper loop mode,why I must select open-loop but not close-loop?If I select close-loop,the servo motor doesn't work too.
    3,If I want my two servo motors run at different velocity,How shoud I do?It seems I just can set the same velocity in MAX for my two servo motors.
     My English is poor,Pls pardon me!I come from China.
    Thank you for your help!
    EnquanLi
    Striving is without limit!

    Hi,Jochen,
    Thank you for your kindly help!
    The manufacturer of the drive and motor that I am using now is Japan SANYO DENKI,drive type is RS1A01AA,motor type is R2AA06020FXP00.
    And I use position control mode,thehe encoder's counts per revolution is 131072.I set the electronic gear ratio to 1:1 for drive.
    Now,I can use Close-Loop to control the motor but still has some problems.When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position.When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position.The detail situation is as following
    1,Motor can't run.
    2, Or motor moves to a position, then moves in the same direction agian and eventually stops.
    Except for the  two points mentioned above,"Following Error" is  occured frequently,I don't know why.
    I am still not clear why I must set the motor type be stepper in MAX .
    And I have another question:what the relationship between the steps and the counts?They have the proportion relations?I notice that there are a section said like this in help document: For proper closed-loop and p-command operation, steps per revolution/counts per revolution must be in the range of 1/32,767 < steps/counts < 32,767. An incorrect counts to steps ratio can result in failure to reach the target position and erroneous closed-loop stepper operation.
    I am verry sorry I have too many questions!
    I am very appreciate for your kingly help!Thanks again!
    EnquanLi
    China
    Striving is without limit!

  • Two Questions about Airport Express

    All, I am a recent convert to using a Mac so bear with me.
    I have two questions about the Airport Express.
    Question if I buy one in the USA, I will visiting this week on holiday,can I use it the UK with a UK adaptor/apple plug?
    Can the Express be used with my current wireless network, using a Netgear DG834G V4, I have read lots in the forums about putting a $ sign in front of the WPA password?
    Any help and advice gratefully received.

    Tesserax wrote:
    Hello andixbox. Welcome to the Apple Discussions!
    Question if I buy one in the USA, I will visiting this week on holiday,can I use it the UK with a UK adaptor/apple plug?
    Yes, but at least two things to consider:
    o The US version of the 802.11n AirPort Express Base Station (AXn) only supports radio channels 1-11 in the 802.11g radio mode. Channels 12-14, used in other countries outside the US will not be available.
    o The AXn supports both the 2.4 and 5 GHz radio bands for 802.11n. The 5 GHz band is restricted in certain countries (like the UK) so operating in this mode may get you unwanted attention.
    That should be okay then because the Netgear broadcasts on channels 1-11. I hadn't appreciated the 5 Ghz band, but having checked both US and UK Apple sites the techspecs both mention 2.4 Ghz and 5 Ghz.
    Can the Express be used with my current wireless network, using a Netgear DG834G V4, I have read lots in the forums about putting a $ sign in front of the WPA password?
    If your intent is to have the AXn join the Netgear as a wireless client, then yes it should work. The "$" requirement was for WEP. This shouldn't be necessary for WPA or WPA2.
    I intended to use the AXn as an range extender, but you mention wireless client, is that something different?

  • Few questions about upgrading database

    Hi everyone,
    greetings of the day
    I have few questions about the upgrading database,
    In export and import mode
    1.can we have new name for the target database,
    2.I think we need to create tablespaces ,do we need to create users as well
    3.If we are upgrading from 9i to 10g database ,any activity to be perfromed other than creating a new sysaux tablespace
    4.How come we get consistent export
    In DBUA mode ( in the same machine only)
    1.Do we need shutdown / startup restrict the database
    2.How can we move the files to the new location
    3.Can we change db_name of the database
    4.Can we use the old database as well
    In manual upgration using catupgrd scripts
    1.Can we rename the db_name
    2.can we use old database as well
    3.how to move the database files to the new location
    4.can we perform this kind of upgrade on a different server
    5.when we startup upgrade in the new home ,how it identifies the old database in-order to upgrade the old one
    Thanks

    udayjampani wrote:
    Hi everyone,
    greetings of the day
    Pl post details of source and target database versions, along with your OS details.
    I have few questions about the upgrading database,
    In export and import mode
    1.can we have new name for the target database,Yes.
    2.I think we need to create tablespaces ,do we need to create users as wellYou can create users, but it is not necessary. You need to pre-create tablespaces only if their characteristics/locations on the target are different than on the source.
    3.If we are upgrading from 9i to 10g database ,any activity to be perfromed other than thisNot that I am aware of - see the steps in the Upgrade Guide - http://docs.oracle.com/cd/B19306_01/server.102/b14238/expimp.htm
    4.How come we get consistent export wetherEnsure the database is started in restricted mode, so users will not be able to access the database during the export.
    >
    In DBUA mode ( in the same machine only)
    1.Do we need shutdown / startup restrict the databaseNo - DBUA will do this automatically for you.
    2.How can we move the files to the new locationYou can after the upgrade move the datafiles to wherever you want - use the ALTER DATABASE RENAME DATAFILE (http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_1004.htm#i2082829) command.
    3.Can we change db_name of the databaseI do not believe this is possible with DBUA.
    4.Can we use the old database as wellNo - the database will be upgraded by DBUA - there is no "old" database.
    >
    >
    In manual upgration using catupgrd scripts
    1.Can we rename the db_nameYes.
    2.can we use old database as wellNo - the scripts will upgrade the database - there is no "old" database.
    3.how to move the database files to the new locationSee above.
    4.can we perform this kind of upgrade on a different serverPl elaborate on what you mean by this. You can copy the existing database to a different server (assuming compatible OS) and upgrade it there.
    >
    >
    ThanksHTH
    Srini

  • HT201364 Hello ! i have a question about my Hard's Disc storage space. I have Mac book Pro 11" Retina with hard disk 120 GB . I want to make this update but its impossible because of no free space. And now i want to ask. Its 120 GB full space but i dont k

    Hello ! i have a question about my Hard's Disc storage space. I have Mac book Pro 11" Retina with hard disk 120 GB . I want to make this update but its impossible because of no free space. And now i want to ask. Its 120 GB full space but i dont know how.  It tells me lets say i have 30 GB movies but i dont have anything ! Can you help me with any way ? If i can do something to see what movies let's say means !  
    Thank you !!

    Hope this helps.
    1. Empty Trash.
        http://support.apple.com/kb/PH10677
    2. Start up in Safe Mode
        http://support.apple.com/kb/PH11212
    3. Delete "Recovered Messages", if any.
        Hold the option key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the dropdown.
        Library > Mail > V2 > Mailboxes
        Delete "Recovered Messages", if any.
        Empty Trash. Restart.
    4. Repair Disk
        Steps 1 through 7
        http://support.apple.com/kb/PH5836
    5. Disk space / Time Machine ?/ Local Snapshots
       http://support.apple.com/kb/ht4878
    6. Re-index Macintosh HD
       System Preferences > Spotlight > Privacy
       http://support.apple.com/kb/ht2409
    If this does not help, you have to buy an external HD and move your movies photos.etc to
    the external HD.

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • Basic questions about macbook pro + external monitor

    Hi,
    I have some very basic questions about using a Macbook Pro + external display. I don't actually have them but need to know how things works.
    So, here they are:
    1) Can I use the external display as the main display?
    2) Will the external display run with its resolution or with that of the mbook pro?
    3) Somewhere I read that you cannot keep the macbook pro open and get the full resolution of the external display. Is that true ?
    4) Is it dangerous to keep the mbook closed while using the external display?
    5) Does the usage of the external display impact on mbook performance?
    I know...a lot of questions , but would be nice if someone could help me.
    Thanks.

    Hi - I am presently using an external display.
    To answer your questions in sequence:
    1. Yes you can use the external display as your main display. The way to enable that mode is to put your MacBook Pro to sleep, attach the external display. Wake up your MBPro with the lid closed and you will see the external display as you main display. You can alternatively set the external to "Mirror" your notebook by using preferences/display.
    2. The external display will run at its resolution although you can adjust and calibrate it using Preferences/Display.
    3. Not true. You get max resolution on both displays. Of course you may have to tweak as mentioned above.
    4. Not at all. I use this mode all the time. Just make sure you initially set up as mentioned above and your LCD on the MBPro will stay off.
    5. I have not seen any performance degradation whatsoever.
    Hope this helps.

Maybe you are looking for

  • Does Blockout & Remove content work in Acrobat X?

    Why does blockout & remove content not work in Acrobat X Standard?

  • Store Hindi Text in SQLServer and Display in JSP

    I've list of users for which I'm preparing objects of User class in which the user name is stored in hindi text. In the servlet which is storing the values in the database, the code is User = new User(); user.setName(java.net.URLEncoder.encode(reques

  • Create item hierarchies

    I want to create item hierarchies Example : I have 3 folders -JOBS(id,job_title,hour) -SEX(id,id_sex_job,code_sex) -STAT(id,id_stat_jobs,code_stat) JOBS and SEX are joined (JOBS.id = SEX.id_sex_job) JOBS and STAT are joined (JOBS.id = STAT.id_age_job

  • Array size in Analog Tacho Processing vi

    Hi I would like to know more about what Analog Tacho Processing vi does particularly on the array size that it generates. Attached is an example of vi that comes with LabVIEW. I used the array size function to show the size of the signal before passi

  • IPhoto Application not opening on OSX Mountain Lion

    iPhoto application not opeaning  after recovery of OSX mountaion Lion 10.8.4(Fresh Installation) When iPhoto is opened it pops out with this error msg Process:         iPhoto [6858] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Iden