Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Compiling C code in a C++ compiler

Name: Anonymous 2009-02-25 8:55

How to make it work?

Name: Anonymous 2009-02-25 9:31

extern "C" { ... NO EXCEPTIONS ... }

Name: Anonymous 2009-02-25 10:49

>>2
no, thats for linking

Name: Anonymous 2009-02-25 12:26

C is not C++. In particular, even though 90% of what works in C will work in Sepples (you godforsaken failure of a programmer) some of the scoping rules are different and the operator precedence table is altered in subtle ways (to make room for all the absolute shit that they added).

What you should probably do is just check for a "compile regular fucking C" mode on your compiler.

Name: Anonymous 2009-02-25 12:46

Or you could just use a fucking C compiler.

Name: Anonymous 2009-02-25 17:43

>>4
Usually engaged by calling the file <whatever>.c rather than .cpp/.cxx/.c++

Name: Anonymous 2009-02-25 20:18

Is there a such thing as a C++-only compiler?

Aren't all C++ ``compilers'' just additions to pre-existing [code]C[code] compilers?

Name: Anonymous 2009-02-25 22:38

how do you compile c code with gcc so the executable is named something other than a.exe? currently am just using "gcc source.c"

Name: Anonymous 2009-02-25 22:41

I compile my C with ghc

Name: Anonymous 2009-02-25 22:54

>>8
Compile it on Linux. You'll get a.out.

Name: Anonymous 2009-02-25 23:27

>>4 is butthurt because he can't grasp the entirety of C++, and therefore calls it bloated.

Name: Anonymous 2009-02-25 23:48

>>11
He doesn't know about the power of templates. I bet he doesn't even use C. He writes his shitty slow garbage-collected code in some dynamic language like Lisp or Haskell.

Name: Anonymous 2009-02-26 0:37

>>11
C++ started out as an ugly hack and over time, it has transformed into something truly abominable. Sure, it's powerful but it's close to useless now that we have other languages that are superior to C++
inb4ihbt

Name: Anonymous 2009-02-26 0:38

>>13
No, I HBT

Name: Anonymous 2009-02-26 0:52

>>12
power
templates
FFFFF... ihbt.

Name: Anonymous 2009-02-26 0:55

>>13

There are no languages superior to C++. Those that are just as diverse and flexible are either
a) A shit ton slower, or
b) Not portable


But this is just one massive troll.

Name: Anonymous 2009-02-26 1:17

>>16
Not portable
I think you meant; They only run on toy architectures/OS's, and are incompatible with all the libraries that people actually use in real life for writing programs that don't just calculate the Fibbonacci sequence.

C falls under a) because it doesn't have templates.

Name: Anonymous 2009-02-26 2:16

>>8
man gcc

Name: Anonymous 2009-02-26 2:30

gcc
Pronounced 'gucci'.

Name: Anonymous 2009-02-26 3:50

>>17
EXPERT C++ TROLL

Name: Anonymous 2009-02-26 5:25

>>16
Java is faster than C++ unless you do not have dynamic memory allocation at all.

Java is more portable than C++: can you write a C++ application for a mobile phone? Working on ANY mobile phone with MIDP support?

Name: Anonymous 2009-02-26 5:28

>>21

Java is faster than C++
Hurrrr Durrrr

Name: Anonymous 2009-02-26 6:26

>>21
stop it

Name: Anonymous 2009-02-26 6:41

java can't even use integer values as boolean, what the hell is up with that?

Name: Anonymous 2009-02-26 14:23

>>24
Neither can Haskell. Oh em gee, does that mean Java and Haskell are the same thing

Name: Anonymous 2009-02-26 14:31

>>25
Yes.

Where is your god now?

Name: Anonymous 2009-02-26 14:48

>>26
HAXING UR ANUX

Name: Anonymous 2009-02-26 20:42

>>26
Where is your god now?
MY god is @ MIT.[1]

__________
[1] http://groups.csail.mit.edu/mac/users/gjs/

Name: Anonymous 2009-02-26 21:54

Name: Anonymous 2009-02-26 22:50

The Glassgow Haskell Compiler is the wonderfull compiler on which Jaskell is based.

Name: Anonymous 2009-02-26 23:12

>>28
mac/users/gjs/
mac/users
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK
FUCK FUCK FUCK FUCK FUCK

Name: Anonymous 2009-02-26 23:35

>>31
It's an AI lab. The initials are coincidental. Don't have your period.

Name: Anonymous 2009-02-26 23:54

>>31
back to /g/, if you please

Name: Anonymous 2009-02-27 0:03

Richard Stallman

If you are looking for my personal home page, look here.
                                                          

Here is a copy of the Anti-POSCO site.
                                                          
Please send comments on these web pages to rms@stallman.org.

Copyright (C) 2000 Richard Stallman
                                                          
Does he even care about programming anymore, or has he given that up to become a full-time social worker?

Name: Anonymous 2009-02-27 0:13

>>34
RMS Stallman was a programmer?
wtf?

Name: Anonymous 2009-02-27 0:31

>>35
Apparently so, you should read about the whole Symbolics vs rms story, it's really amazing, but also somewhat stupid.

Name: Anonymous 2009-02-27 1:24

>>34
He's stated that his personal system is already complete (gNewSense, emacs, screen, free BIOS among other things) and so, he doesn't need to do any hacking for any personal requirements. Instead, he chooses to spend his time to lecture those that are willing to hear. He is also known to crank dat soulja boy.

Name: Anonymous 2009-02-27 10:49

>>37
If you have emacs, why would you need screen?

Name: Anonymous 2009-02-27 10:50

>>37
and wget for browsing, apparently

Name: Anonymous 2009-02-27 10:54

>>36
further evidence of why cooperation with RMS is impossible

>>37
Go to hell

Name: Anonymous 2009-02-27 11:55

>>37
woops sometimes you explicitly the different semantics

Name: Anonymous 2009-02-27 12:07

>>36
Clarify please. Did you mean GNU emacs vs x-emacs?

Quick googling brings such hilarious results as this http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1235754336557+28353475&threadId=1104571

Name: Anonymous 2009-02-27 16:43

>>42
GNU emacs v. x-emacs isn't the same as RMS v. Symbolics. http://www.donhopkins.com/drupal/node/109

Name: Anonymous 2009-02-27 20:12

TL/DR of RMS v. Symbolics: Symbolics killed the AI lab, so for every feature implemented in the Symbolics LISP OS, RMS implemented seven.

At the end of this effort, however, the () keys on his Space Cadet keyboard went completely dead, forcing him to leave the field of programming forever, never to return.

Name: Anonymous 2009-02-28 5:55

>>44
Can't he just buy another keyboard?

Name: Haxus the Great 2009-02-28 6:04

Haxus the Great

Name: Anonymous 2009-02-28 6:31

>>45
pffft, and support CAPITALISM?
he ain't going to give THE MAN his money.
haven't you noticed that he hasn't even bought any new clothes since the 80's?

Name: Anonymous 2009-02-28 6:42

>>47
Build another keyboard himself?

Name: Anonymous 2009-02-28 9:08

>>47
He had no qualms cranking dat soulja boy[1]

[1]http://www.youtube.com/watch?v=7C6r6fG4k40

Name: Anonymous 2009-02-28 9:19

Name: Anonymous 2009-03-02 3:25

Name: Anonymous 2009-03-06 7:29


The same with opening   an empty file.

Name: ​​​​​​​​​​ 2010-10-26 4:25

Name: Anonymous 2010-12-17 1:27

Xarn is a bad boyfriend

Don't change these.
Name: Email:
Entire Thread Thread List