From: Stephan Zimmermann Subject: Re: [Xenomai-help] Xenomai Simulator Date: Fri, 3 Nov 2006 09:13:10 +0100 References: <200611021453.54463.s.zimmermann@domain.hid> <200611021717.31758.niklaus.giger@domain.hid> In-Reply-To: <200611021717.31758.niklaus.giger@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611030913.11016.s.zimmermann@domain.hid> List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Am Donnerstag, 2. November 2006 17:17 schrieb Niklaus Giger: > Am Donnerstag, 2. November 2006 14:53 schrieb Stephan Zimmermann: > > Hi, I am actually trying to set up the Simulator, which turns out to be > > not so easy... > > <..> > > > But calling > > "gcic -I/usr/xenomai/include -g -c main.cpp " > > leads to : > > Does your C++ programm compile cleanly under gcc-2.95? If not, you are out > of luck, as the simulator was developped under gcc-2.95. I did not even come to trying to compile my C++ application under gcc-2.95, as my testprogram - which is free of any c++ code - doesn't work. (The testprogram simply shadows the maintask and returns, some five lines of code..., as I just see, the code I posted recently contains "std::cout << something..." calls, I removed them and removed everything not needed, didn't mention that before) #include #include #include "native/task.h" #include "native/timer.h" RT_TASK maintask; int count = 0; int main(void){ int err; unsigned long overrun = 0; printf("test...\n"); mlockall(MCL_CURRENT | MCL_FUTURE); err = rt_task_shadow (&maintask,"maintask",10,0); return 0; } > > As far as I know, porting it to a newer version would be a considerable > effort. I think Gilles mentioned some problems in a earlier mail some > months ago.