| |
| |
| |
|
Page: 1 2
Comments:
<0> shogunx: you will wind up building and running and i386 kernel. <1> i'm kinda new to this programming and would like to know how to compile in gcc without a makefile, or at least how to make one if it's not possible <2> gcc source.c -o binary_name <1> if it's a c++ file source.cpp <2> g++ source.cpp -o binary_name <1> hmm how do i make .o files then? <1> nvm <2> -c <1> thank you :) <1> can't get it to work >;/ <2> g++ -c source.cpp <2> will compile source.cpp to source.o <1> hmm <1> i can't get an executable <2> g++ *.o -o my_executable <1> would "g++ Hello.o -c Hello" be correct or do i need to add .bin?
<1> -o* <2> I think you should real the man pageread <2> -c is for getting object files, not executable binaries <1> i typed wrong <1> in here <1> i did "g++ Hello.o -o Hello" in the term <3> and what happened <1> i got an error <1> all i needed to do was g++ Hello.cpp -c Hello <1> .P <1> :P* <4> whats -fno-unit-at-a-time option? <1> what? <1> -f <filename.filetype> <1> case sensitive <4> i want to know what is CFLAGS extra FLAG -fno-unit-at-a-time ?? <4> what is its use ? <1> i don't know sorry :( <1> i just learned to compile <1> that's how good i am <1> my advice, ask google ^^ <4> i did it already no results <4> thats why i asked here <1> :( <1> did you read the channeltopic? <4> no but i have gone thru makefile manual on gnu.org <1> what about that channel? <1> ##workingset <4> Peacer, i downloaded Gcc 4.1.1 manual and searched for word -fno-unit-at-a-time and found nothing <2> it'd probably be documented in the positive as -funit-at-a-time <2> no match for unit-at-a-time either? <4> but then how make file compiled source with that flag?? <4> will check it <2> google finds some hits for "unit-at-a-time" <4> am i checking under cpp.pdf is that right?? <4> i searched for complete word on google.com <5> helloo <5> i have a question <1> k <5> i am getting an error in installing a file using gcc <1> installing a file? <5> its getting me No rule to make target modules <1> you shouldn't be talking to me then <1> my experience: w00t i learned how to compile .cpp files <5> oh k thanks for looking tho <1> np :) <5> hey guys what is error 2 in context of make command ? <6> don't know sorry <5> oh k <6> look in the makefile maybe <5> do they list errors ? <6> nope <6> but maybe you willl stumble across something <6> going brb <7> morning <8> hey there, i'm trying to compile a new version o kernel but after i run the "make" command i get the following: http://rafb.net/paste/results/h535ds24.html <8> GNU Make 3.81 , gcc version 3.4.6 <9> can someone help me build gnu c and c++ compilers? i want version 4.1.1 is these tarballs what i need? gcc-core-4.1.1.tar.bz2 gcc-g++-4.1.1.tar.bz2 and gcc-testsuite-4.1.1.tar.bz2 ? <9> then i read this: http://gcc.gnu.org/install/test.html <9> and i don't get what is "cd objdir; make -k check" where do i do that? <9> i've got tcl, dejagnu and expect
<10> tarzeau: what distro you use? <9> debian sarge <9> variant: why? <10> just curios <9> we do many backports here for our workstations. but there's also a bunch of software that can not easily be backported <9> and etch being set a release date of december is too late. we need gcc 4 for autumn 2006 <10> why do you need gcc4? <9> bugfixes over version 3 <9> for some lessons held here <10> i see <10> afraid i cant help <10> im off for lunch <11> tarzeau: hi there <11> tarzeau: you need only gcc or all the others too? <9> intero: just gnu c compiler and c++ <9> intero: i know you from gnustep and obj-c .. right? <11> tarzeau: yes =) <11> tarzeau: okay, cd gcc <11> mkdir objdir <11> cd objdir <9> inside gcc-4.1.1 ? <9> and then? <11> ../configure <11> and eventually make <11> check, there are options that allow you to build only gcc and g++, skipping ada and such <11> (yes, inside gcc-4.1.1) <11> you can: gcc-4.1.1$ links INSTALL/index.html <9> intero: know links2 -g ? <11> tarzeau: nope, trying now =) <11> tarzeau: last time i checked it was not there yet <11> tarzeau: cool =) is it working, btw? <9> it's building something.... <9> i don't know what and how, but i'll test it <11> good good <12> I have a structure A_T which at it's start declaration I have another structure B_T having no field name: struct A_T {B_T; <other fields>}. vc6 compiles and runs perfectly, but with gcc I get the warning "declaration does not declare anything" and the same program crashes. Can someone explain me why it does that? <9> intero: doing any gnustep still? <11> tarzeau: not really, i dont have enough free time <11> tarzeau: if you are in zurich, do you know anything about ETH? <9> intero: yes i work there? <11> really? <9> yes indeed <11> wow <11> mind if i ask you a few questions about it, later on? i was planning to do a phd there... <9> go ahead <9> you're in italy now? <11> thanks. yes, i am in italy <11> and i am not sure yet about what to ask :) actually i only have a general question, which is how do you find it? any comments? what field are you working in? <9> i'm in department of physics <9> the wikipedia has some general info about ETH Zurich <11> catalinux: paste some code somewhere please <9> doing informatics here for the department and quite some institutes <9> i get very positive feedback of foreign workers here that went abroad <9> everything is very well organized <9> http://en.wikipedia.org/wiki/ETH_Zurich <11> nice =) it's just that i am a little scared, maybe <11> thanks <12> intero: one second <9> intero: scared of what? <11> tarzeau: not being able of doing the work there, away from home, possible accidents that may occur, and so on <11> :) <9> intero: what did you study, and on what do you plan to do your phd? <11> informatic engineering (?), which i guess is computer science there. about the exact field, i am not sure. i have seen many things i might possibly be interested in, and need to take a more detailed look <12> intero: http://home.catalinux.net/x <11> reading <11> where is EVENT_TYPE_T defined? <12> intero: it is defined somewhere else, but you got the idea <11> catalinux: defined before or after? <12> intero: before <11> did you compile with gcc -W -Wall? <12> intero: the idea is that the memory is not alocated for NET_LINK_STR_EVENT_T <12> -g3 -ggdb3 -Wall -Wdeclaration-after-statement -Wmissing-include-dirs -Winit-self -Wunused-parameter -Wunknown-pragmas -Wpointer-arith -Waggregate-return -Wpacked -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wformat-y2k -Wformat-security -Wfloat-equal -Wundef -Wold-style-definition -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wextra -Wcast-qual -Wwrite-strings -Wno-unused -Wno-unused-function -Wno-unused- <12> parameter <11> what happens if you turn declaration into: typedef struct {} EVENT_T; ? <12> intero: if I put EVENT_T event; in NET_LINK_STR_EVENT_T the memory is alocated and all works
Return to
#gcc or Go to some related
logs:
lmms 0.1.4 ubuntu suspend to desk i #lisp lpcj linux real foxandxss maple 9 install kubuntu eggtray python marvell gigabit genkernel Kooldock twinview #php
|
|