| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> Object-Oriented Programming in C++ <1> I haven't yet read that <1> I haven't cared much for the Sams publications on C++ <2> what do you understand from 'Ogre::Scenemanager *ExampleAplication::mSceneMgr'? <3> hi <3> why when i try to write a string to a file like this :output_file<<s; all the spaces get cancelled <2> anyone using vc++? <3> yes <2> what does Ogre::Scenemanager *ExampleAplication::mSceneMgr mean? <3> yes i'm using vc++ 2005, but how can i get it to work? <4> which spaces get cancelled? <4> being taken out of context it means nothing newtoogre <3> oh sorry <2> melfar: when i go over mSceneMgr, vc++ shows 'Ogre::Scenemanager *ExampleAplication::mSceneMgr' as a hint <3> my mistake <2> melfar: do you have an idea about it?
<4> looks like a static var of Ogre::blablah* type <4> maybe not static, depends on how vc shows it <5> I have a question.... <5> if I have a vector cl*** with a type def Point <5> and I have a matrix cl*** that multiply a vector * a matrix and return that vector. <5> If I multiply a Point times the matrix will that work? <6> i am trying to link c and c++ files (don't ask why). And i have a function defined as extern in a .c file and i want it to be linked to define it in c++ file. What do i say in c++ file to be able to link properly ? <4> extern "C" { prototype(); } in c++ file? <6> can i just do extern "C" int func(int) { ... } ? <6> ie, do i need the set of brackets after "C" ? <4> what does the experiment say you? <6> doesn't work <6> says symbol undefined <6> and if i do extern "C" it gives me a conflict <4> which conflict? <6> says previous declaration of ..func... with C++ linkage conflicts with new declaration with C linkage <6> g++ is a C++ compiler right ? <4> you get this conflict when you extern "C++" in one place (which is default for c++) and extern "C" in another (which is default for c) <5> ok I have a cl*** Vector (bla bla); typedef Vector Point <5> when I make a Point on the main <5> it does not let me use its functions <5> why?? <7> how can i run the "ls" linux command through c++ <8> why would you want to? <8> if you want to work with directories and files, check out boost.filesystem <5> rdragon <5> why when I do the typedef Vector Point <5> when I declare a point it does not letme access the functions of it that are defined in Vector <7> i handle some events related to the creation of folders and i want to list the files within this dirctory <8> typedef Vector Point; why is that useful? Just use Vector <8> and it should, anyway, since it's just an alias for the type <5> because I need a point in but I dont want to make a point cl*** <5> so I am using typedef Vector Point; <8> typedef Vector Point; makes Vector and Point interchangable names for Vector <8> so you're just obscuring what's going on by giving 2 names to the exact same thing <5> I know but then when I put in my main Point something; something.memberfunction; <5> it gives me and error <8> like what? <5> d:\ribTokenizer\main.cpp(11): error C2228: left of '.set4To1' must have cl***/struct/union type <8> maybe that code doesn't see the typedef, then <8> just use Vector <5> I cant I need to use points. <8> it's the same ****ing thing! <8> a typedef doesn't create a new type <5> no for what I am doing <8> it's the SAME THING <8> void f( Vector v ); Point p; f( p ); //completely fine, Point is Vector <5> ok can you jsut tell me why the typedef point would not work...?" <8> it does work, your code just likely doesn't see it, or doesn't see the definition of Vector <9> pharon: std::system("/bin/ls") <9> calc dir <10> dir = Under Windows, use the FindFile Win32 API calls (see <http://msdn.microsoft.com/library/en-us/fileio/filesio_4qcl.asp> for more information), or call system("dir c:\\path\\to\\folder /b > file") and process the resulting file. If you're on a Unix-like OS, use opendir/readdir/closedir, or call system("ls /path/to/folder > /tmp/file") and process /tmp/file. <5> I am putting the typedef Vector Point only in the Vector.h <5> shoul I also put it in the .cpp and in the main? <8> no, you should #include "Vector.h" <8> and you should remove the typedef completely <7> thanks _m_ <5> so where should I put the typedef Vector Point? <8> you should get rid of it <5> but if I want to use it where should I put it? <8> in Vector.h, but you shouldn't use it
<11> anyone know the channel key for #amd ? <12> try "intel" <4> Cantide: /names #amd , them pm ops <4> then even <11> ooh <11> ok, thnx <11> i didnt know you could /names <11> i tried /list #amd... but there isnt a topic :S <6> how do i tell a compiler not to mangle the name of the function in a .cpp file so it can link with a .c object ? <8> you want to call a C++ function from C ? <6> yeah <8> provide the function declaration with extern "C" <1> omelche who is callin whom in your scenario? <6> the c library is trying to link to a c++ file <6> c library depends on one of the functions to link <1> ok, you might have some problems with that depending on whether the name of the function is unique or not <13> Anyone familiar with RAS? <13> When I try to RasDial() and entry I previously create, it actually adds "9,1-418" before the number so the connection will not work. How can i prevent the conection from using area and country code? <1> this has something to do with C++ ? <13> totally <1> I don't see how...and saying "I'm writing my program in C++" won't cut it <13> if you didnt understand, add "in c++" at the end of my sentence <1> I guess you simply don't understand....go look up RasDial and see what all the arguments are <13> I did, its not in there <1> bull**** <9> It's not in here, either. <13> wel... <1> the 1st arg <1> but the problem looks like someone ****ed w/ your RAS Phone book <13> well the 1st parameter is ignored <14> I don't have RasDial here <1> you wuold if you used a _real_ OS <1> lol <13> and yes, i do need to modify the phone book (actually the registry since its CE) so it doesnt take th earea and country code <1> well, this all sounds like an OS problem, not C++ <13> well sorry for not being cool enuff and not using a _real_ OS <6> vawjrwrk : when the function is implemented in .c file and compiled with a c compiler, linking goes ok, if i try to compile it with a c++ compiler then i get a link error, any idea on how to avoid it ? <1> I was talking to jottinger <13> k <1> thought CE is the only accurately named OS that Microsoft has ever shipped <8> the goal is not to 'avoid' or 'hide' the error, it's to fix the problem causing the error <1> WinCE a perfectly good English word which describes every programmer's initial reaction to it <8> it's nonsensical how many people say "how do I get rid of the error message" <14> vawjrwrk++ <13> so anyone REALLY familiar with RAS? <1> RoG go away NOW <6> let me rephrase the question <14> vawjrwrk: and screw you, I have a bunch of real OSes, and only one of which would happen to have anything to do with RAS <1> go fix you damned phonebook <6> is there a way to call a c++ function from c ? <14> omelche: yes <6> if the function is defined as just extern void func(void) <1> omelche if it's a C program why are you compiling it with a C++ compiler? but as you were told earlier define it with extern "C" <1> that's not how you _define_ things <13> or anyone has any link on how to modify call options and baudrate on a RAS client connection <1> you _define_ things where the code is, not where you're trying to use it <13> IN C++ <6> g++ -o hw1 -g -I/cad2/ece540s/ece540/suif/include doproc.o bitvector.o labeltab.o main.o print.o BB.o \ <6> -L/cad2/ece540s/ece540/suif/SPARC/lib -lsimple -lcheck -lsuif prog_ver.cc <6> Undefined first referenced <6> symbol in file <6> do_procedure /cad2/ece540s/ece540/suif/SPARC/lib/libsimple.a(simple.o) <1> goodby RoG <6> this is the error i am getting <6> sorry for pasting in chan <6> i will use the website next time <1> you're including source files? <6> those are c libraries <1> not with an extension of .cc <1> that's a SOURCE file <6> oh that <1> oh, sorry, that's your source <6> no <6> its not
Return to
#c++ or Go to some related
logs:
#java gentoo firefox regchrome command not found #linuxhelp postfix-dbm package is baseball a sport angelkar #mirc mod_python publisher Permission denied rk for linux #linuxhelp
|
|