•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,575 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 927 | Replies: 10
![]() |
You might be better off trying to compile it as a C++ program rather than a C program.
Your friend has obviously made use of a few compiler extensions which GCC supports, but which few other C compilers do, in particular:
Standard C does NOT support mixed declarations and statements. For that you need
- a C++ compiler
- Some non-standard extension in your C compiler
- A C99 (the new C standard) compiler.
Oh, and please use [code][/code] tags when you post code (see intro threads).
Your friend has obviously made use of a few compiler extensions which GCC supports, but which few other C compilers do, in particular:
gsl_matrix_set(A,4,3,0.3); double *y = (double *) calloc(B+S,sizeof(double)); // populations
- a C++ compiler
- Some non-standard extension in your C compiler
- A C99 (the new C standard) compiler.
Oh, and please use [code][/code] tags when you post code (see intro threads).
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
apple browser cellphone code computer core crack data dell desktop development enterprise environment fedora gentoo gpl hardware ibm install internet key laptop linux microsoft mobile network news novell office open open source openoffice operating os pirate red hat security server software source sun survey system ubuntu unix upgrade vista web windows xp
- possible working windows image in dvd? (Windows NT / 2000 / XP / 2003)
- How to remove Linux and install Windows XP? (Linux Users Lounge)
- compiling errors (C++)
- installing linux over troubled windows (*nix Software)
- Linux vs. Microsoft Windows (Linux Users Lounge)
- what are steps to uninstall linux and reinstall windows (Windows NT / 2000 / XP / 2003)
- Mounting an ext2 Linux Filesystem in Windows XP/NT/2000 (*nix Hardware Configuration)
Other Threads in the C Forum
- Previous Thread: problem in the logic
- Next Thread: __XXXXXX Function Types



Linear Mode