To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / *26934 (-5)
  Re: execi and C++
 
(...) I've spoken too fast. Re-reading the error message I saw the real problem. "controlThread" or "&controlThread" are the same. You should add a cast: execi(&controlThread, 0, (char **)NULL, 2, DEFAULT_STACK_SIZE); NULL is defined mem.h as (...) (26 years ago, 18-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: execi and C++
 
(...) In C you should call execi() like this: execi(controlThread, 0, NULL, 2, DEFAULT_STACK_SIZE); /* Removed `&' */ since a function is like an array name: it is an address. Probably the same applies to C++. bye Bernardo (26 years ago, 18-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: A big hail to all of you.
 
(...) Programmers have been arguing about this since the early 60's...we all know we'll never agree...I've *never* seen one of those debates end with one programmer saying "Wow - you're right - I'll completely change my programming style"...nope - (...) (26 years ago, 18-Feb-01, to lugnet.robotics)
 
  A big hail to all of you.
 
Thanks again for clearing this up, now I understand the reason behind it, why there is a certain way how you write code (and it makes sense too) I hope in a year from now I can write code in NQC at least as efficient as I can write an email in (...) (26 years ago, 18-Feb-01, to lugnet.robotics)
 
  execi and C++
 
Hi all, sorry if this is a rediculously trivial problem, but I'm having some problems with execi on legos0.2.5 , I can't seem to get g++ to compile when I use it, I pass it a 'correct' function.....like so : int controlThread(int argc, char **argv) (...) (26 years ago, 19-Feb-01, to lugnet.robotics.rcx.legos)

Next Page:  5 more | 10 more | 20 more
Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR