| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> I even tryied to include system.cc directly but I have multiple definitions errors <1> NONONO NONO <0> I'm not sure what would make main.cc happy <1> are you SURE this is a compile error <1> not a link error? <2> It's gotta be a link error, it's an undefined reference <0> linker you'r right <0> ../threads/main.cc:105: undefined reference to `fileSystem' <0> ../threads/main.cc:105: undefined reference to `FileSystem::getRootDirectory()' <0> collect2: ld returned 1 exit status <0> make[1]: *** [nachos] Error 1 <0> make[1]: Leaving directory `/home/michael/Desktop/Nachos_LAST/code/threads' <0> make: *** [all] Error 2 <0> sorry for the huge paste <2> It's okay <1> then you probably need to compile system.cc
<1> and tell whatever that both .o files need to be linked <0> ok then emm <0> can you help me just a bit on this one <0> the makefile was already done ok <0> and it looks like that <0> main.o: ../threads/main.cc ../threads/copyright.h ../threads/utility.h \ <0> ../threads/bool.h ../machine/sysdep.h /usr/include/stdio.h \ <0> ...large list of .h .. <1> ok, what about it? <0> I'm trying to understand what I need to modify <1> why would you need to modify anythng? <0> well you say I need to compile system.cc <1> somebody should <0> I guess I have to put that modification in the makefile ? <1> I don't know, I haven't seen the makefile <1> does it mention system anything? <0> the makefile seems quite complicated in fact <0> because it does that <0> include ../Makefile.common <0> include ../Makefile.dep <2> yay_, do us a favor and paste your makefile up at www.noidea128.org or some other pastebin <2> And give us (i.e., vic) the link <0> ok ok <2> Actually, I suppose that would be doing yourself a favor, but you know what I mean <0> I almost know nothing about makefile <2> You and any other sane programmer <2> Ideally, you use a tool that doesn't require them, but even if you do, you set them up once and try to forget about them <1> he didn't write the makefile <0> ok <0> here is it <0> http://www.noidea128.org/sourcefiles/15946.html <0> I tried to make it clear but it is not really <0> if it can help you guys, it is the 'nachos' project <0> it's public so <0> but anyways -> I just don't understand realy well ..what I should modify <3> HI <3> I have a problem creating an iterator on a std::list <3> It work under VC++, but not under g++ <3> here is my code : <3> std::list<CPaire>::const_iterator it = liste.begin(); <3> here is the error under g++ : <3> erreur: expected `;' before it <3> Anyone has an idea about what is wrong with my code ? <4> what is CPair? <3> It seem simple and correct to me, but ... it's not. <4> CPaire <3> It's a cl*** I crated <3> created <4> ok, it's a cl*** and not a template param right? <3> No it's not a tamplate param <3> But both the code with the error and the CPaire cl*** are within a TEmplate cl*** <4> maybe you should post the relevant code (a few lines before, a few after) <3> ?? paste <4> the CPaire cl*** is a cl*** defined INSIDE the template cl***? <4> calc paste <5> paste = Don't paste code in the channel. There is a site specifically for discussing source code with others on irc: http://www.rafb.net/paste/ Paste your code there and it will ***ign a unique URL to your content. Give that url in channel. Others will take a look if they want to. <3> YUY0x7: yep, i'll paste it all, one sec <0> vawjrAFK, JBlitzen : the line the linker complains about <0> g++ main.o list.o scheduler.o synch.o synchlist.o system.o thread.o utility.o threadtest.o interrupt.o stats.o sysdep.o timer.o switch.o -lnsl -o nachos <3> http://www.rafb.net/paste/results/3gheqG58.html
<0> it includes system.o <3> The error is a line 203 <0> so ..would'nt it be linked? ? <2> Holy crap <3> The CPair cl*** is at line 52 <2> Yeah, that's huge, that's not what I thought it was <2> What's the error message again, yay <0> here it is <0> ../threads/main.cc:104: error: `fileSystem' undeclared (first use this <0> function) <0> ../threads/main.cc:104: error: (Each undeclared identifier is reported only <0> once for each function it appears in.) <0> make: *** [main.o] Error 1 <4> mathmoi64, weird.. <4> try adding typename, like: <4> typename std::list<CPaire>::const_iterator it = ..... <4> though i don't think that's necessary there <3> ok, I'll try this <3> I found it weird too <0> system.h is included in main.cc, which defines fileSystem 'external', and fileSystem is defined in system.cc <3> YUY0x7: It does not make it. I got the same error. <4> yeah, it was a long shot <4> can you paste the whole error messages? <3> Yes, one sec. <3> YUY0x7 : http://www.rafb.net/paste/results/LwqBu733.html <2> Well, yay, you've got me stumped. But I do have trouble understanding why main.o is using system.h when there's also a system.o. <2> You might ask about that in #linux <3> This the ourput of : g++ *.cpp <4> so the error is in 223, not 203? <3> oh ! <3> It seem putting typename in front of the line works after all <4> aha! <3> Greats :) <4> strange though <3> Can you explain me what typename mean used this way ? <6> mmmm, it's an order pizza night <4> typename is used to tell the compiler that something that depends on a template param is a type, like std::list<MyTemplateParam>::iterator <-- iterator might be or might not be a type <3> ok, probably because CPaire is inside a template cl*** <3> Thank you much YUY0x7. <4> np <4> vc8 doesn't complain <3> No it does not <4> wonder what the standard says about this.... <3> I bet g++ is following the standard <4> comeau gives the same error as g++ <0> JBlitzen : thanks anyways , that's cool <0> I dont know either <2> nod <7> Hi I have a structure and when i declare variabe of it, i keep getting this errror: Could not load type MyType from ***embly. <7> unhandled exception of type 'System.TypeLoadException' occurred in n.exe <4> O_o <6> bwahaha <7> what does it mean? <6> http://www.google.com/search?q=Could+not+load+type+from+***embly <7> could it be cos the file the structure is defined in is not included properly <6> it could be that it can't find the ***embly. i think. <7> but isnt in the .exe file? <7> is it a problem with finding a dll? <6> where does MyType come from? <8> Is there a way to use SDL_net in console ? <7> it is coming from an include file in a different project but same solution <6> did you create a reference to that other project? <7> no how do i do that <6> right click on the project, click Add Reference <7> i added references to the other projects but didnt seem to make any difference <7> still has the same error <6> i think it's likely it just can't find the other ***embly <6> via path or whatever <6> there's a check box in the reference setting that copies the other ***embly to the local dir <6> my knowledge about references and this stuff is a little weak <7> the other project compiles into a .dll <7> how can i make it know to use the dll to find the type <9> hahay <9> hi guyssss
Return to
#c++ or Go to some related
logs:
yourporn nicky cruz vand curve #chatzone #linux #javascript #mirc hi-lithium #windows #php
|
|