General :: Find Equivalent Cc Options For Gcc Compiler ?
May 30, 2011
I am comiling some programs on Linux using gcc previously compiled using cc compiler on Solaris. Below are some of the confusions:
1. There is -xildoff option in cc which is giving error "language ildoff not recognized". xildoff in cc is for switching off the option of incremental editor ild. Is there anything equivalent on gcc?
2. There is runtime link option in cc as -R but gcc just says "unrecognised option". Does gcc only supports LD_RUN_PATH?
3. There is -Xa option to force cc to chose a particular flavor of c.Its for default c and K&R C. gcc has -std option but not sure which one is equivalent to -Xa in c. It seems -std=c90?
We often require to find an equivalent text command for any GUI operation. Just as an example we click on a folder (say ABC) from the current directory in order to see the contents of that directory. The equivalent command for it to happen would be->
Code: cd ABC ls Now the thing is that we often don't know what that equivalent command will be. So I want to know that is there any way out to find it. What I want to do is that I shall perform any operation using mouse in the GUI mode(whatever operation it could be) and then I can see a log file to see what I actually did last(rather what the command would have been if I have worked in the text mode)...
I am writing a script to install a program (a GUI interface) and would like to search if the required software is already installed. This made me think of the command whereis. I was curious how the command whereis is working but didn't know where to search. Is it equivalent with a find at the most common locations?
I'm wondering what my alternatives are when I lose power to the external hard drive where I have Debian installed. I realize that the best answer may be a battery backup UPS for the external hard drive. It seems that I recall that when a similar scenario happened on my SunOS Sparc workstation, I would simply hit [Stop-A] and then type in the "sync" command. I now have a laptop and am running Debian off of an external harddrive that has its own power supply. When I lose power, my laptop obviously continues to keep running but my session is essentially and understandably hosed because the main filesystem is not accessible. Gnome desktop goes away and I am thrown to the main console login. When power resumes, I cannot login to attempt a remount or anything. When I hit [ctrl-alt-del] thinking that that is less forceful than just holding down the main power on the laptop, I get cannot execute "/sbin/shutdown". Is there a [STOP-A] sync equilavent or some way or keyboard sequence to get to GRUB to issue a reboot command?
How can I disable structure alignment feature of gcc using command-line options ?I recently migrated to 64-bit OS, and doubt that I might be experiencing a structure alignment problem due to the new 64-bit architecture.I checked the sizes of the same C-style struct in both x86 and x86_64, and found out that they appear to be different by 20 bytes.I am not sure if this is due to structure alignment or the differences in data type lengths between two platforms.Hence, I will first disable the structure alignment feature, and then check the struct sizes again.
Is there a way to find out with what options a library was configured with when it was installed? I am trying to install a library on my system that depends on gasnet and it requires me to configure it with the very same options that gasnet was configured with. Gasnet was not originally installed by me, so I cannot tell. I can see bin/, include/, lib/ and share/ directories in the gasnet folder and no other information in it. To be specific, I need to use the same CFLAGS that were used during installation of gasnet. For example, if it was installed using '-g -O2', I have to make sure I use the same CFLAGS here.
I have recently installed Fedora 11 and I am having some trouble with it. While installing another program I get the message: make: g77: Command not found
I tied to look for the compiler to install using yum search g77
And got the following list:
I was wondering if it is in some obscure repository, which would seem odd to me. I have the following repositories available (as shown in yumex) :
I cannot install g++ on my ubuntu...i can't find the option foe the G++ compiler in the Ubuntu Software centre...and while typing G++ in the terminal I get a message that tells me to add some pentium...
i have installed on my home PC CentOS 5.5, and downloaded Python 3.1.3 source, when I have tried to run the configuration file I have got
checking for --enable-universalsdk... no checking for --with-universal-archs... 32-bit checking MACHDEP... linux2 checking machine type as reported by uname -m... x86_64
[Code]....
I have tried downloading gcc and installing it, but got the same message. So, I can't find any C compiler, and I can't install one.
I want to compile MFiX which is a simulation software. Therefore, I installed the Intel Fortran Compiler Ver. 11.x When compiling, I can only choose between Ver.9.x and 10.x.
This is a part of the error message when choosing either:
Is there a possibility to link the program to the newer compiler version?
I tried to build firefox with PGO using Intel C Compiler (icc), but, configure gave this error message.
Code: configure: error: Could not find the following X libraries: -lX11 -lXext -lXt *** Fix above errors and then restart with "make -f client.mk build" When I tried it using gcc, there's no error msg. What can I do? My .mozconfig file is... Code: export CC=icc
So for those of you who has built GCC from source would know that you can't install GCC without an existing GCC. So my question is, what would happen if all computers in the world suddenly just died, and all you had was the computer in front of you, and a copy of GCC 4.5. How would you install that?
I ask because I would like to install GCC 4.5 on my old powerbook G4 mac without installing a binary GCC provided by Tiger 10.4 disks. I would like to build GCC from source, without an existing GCC to complicate updating.
I want to search for a file in Dolphin. I select 'Find' and "More Functions" but I columns for filetype, time and rating are not activated. How to have them activated? Online, I come across 'Baloo' service being required. What's that?
I can't find any proper power management options on Fedora 15, only really basic simple options under the Advanced tab of the Screensaver.Where can I change the Power Management settings in F15?I'd like to set it so that
- screen powers down on closing the lid only, else never powers down / or after a certain time. - the machine never powers down, either on AC or on battery. - screen dims on battery after some time, but no on AC. - hard drive never powers down.
I previously used Fedora 14 and earlier version on my laptops, and could easily set these power management either through the Screensaver, or directly from another menu.Also, I enabled the "Blank Screen Only" mode in the Screensaver, and disabled the "Lock Screen After", but it still asks for a password after some time. How can I stop that?
I have to use alsa for audio to work under wine (otherwise pulseaudio starts eating up processor cycles and the audio comes out horrible and distorted), but I have been unable to use the mic. The mic boost is up on the alsa mixer, and they are not muted. I cannot find any options under my system menu for Sound Preferences (which seems to get references in a lot fo help forums), or anywhere else to determine which audio driver the line in on the front uses.
I'm using an Acer laptop from a couple years ago, so support should be no problem.
I upgraded from 9.10 to 10.4 and I get the black border around my desktop. I can't find the scaling option and tried installing the proprietary drivers within Ubuntu and still nothing.
If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the corresponding updatedb for the mac?
Under unix/linux, there is this extremely useful program screen: it's for bash, text-only, and I can detach a session, log out (the session is still running though), log in later (even from a different computer) and resume the session exactly as I left it. My question is, is there an equivalent to screen for X? So what I want to do is: work remotely with ssh -X in an X-session on a remote linux machine, log out, then later log in from a different computer again with ssh -X and then re-attach the X-session; practically resuming work from the moment when I logged out before. Is this possible?
i want to start a project in my spare time. Starting with 2 PC's and expanding to a few more in the future how can I create my own GRID? I was pointed in the location of Uni-core which i have just started having a look at. Anyway could any offer any advice if you have tried soemthing similar. If I could host my own Virtual Environment using the processors/memory of more than 1 pc ill be a happy chappy. Let me know if it isn't worth the hastle, feel free to suggest something else to try