Welcome! Log In Create A New Profile

Advanced

Gmake

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
Gmake
March 22, 2006 09:12AM
Hi

This is the last part of what happens when I execute gmake.There are an error 1 indicated at the bottom

MICOMT::Thread::terminate()':
c:/unisa/mico/include/mico/os-thread/pthreads.h:921: `pthread_cancel'
undeclared (first use this function)
c:/unisa/mico/include/mico/os-thread/pthreads.h: In member function `void
MICOMT::Thread::wait(void**)':
c:/unisa/mico/include/mico/os-thread/pthreads.h:943: `pthread_join' undeclared
(first use this function)
gmake: *** [account.o] Error 1

C:\unisa\mico\demo\poa\account-1>start cmd

C:\unisa\mico\demo\poa\account-1>netstat -a -p TCP

Active Connections

Proto Local Address Foreign Address State
TCP Tinus:epmap 0.0.0.0:0 LISTENING
TCP Tinus:251 0.0.0.0:0 LISTENING
TCP Tinus:microsoft-ds 0.0.0.0:0 LISTENING
TCP Tinus:1025 0.0.0.0:0 LISTENING
TCP Tinus:2804 0.0.0.0:0 LISTENING
TCP Tinus:1031 0.0.0.0:0 LISTENING
TCP Tinus:1037 0.0.0.0:0 LISTENING

C:\unisa\mico\demo\poa\account-1>



IN my SERVER WINDOW

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\unisa\mico\demo\poa\account-1>server
'server' is not recognized as an internal or external command,
operable program or batch file.

C:\unisa\mico\demo\poa\account-1>



If anyone can advise me as to how I should solve the problem,I will really appreciate it.
I would also appreciate if you can tell me how to set the path in win 98.
Re: Gmake
March 23, 2006 08:59AM
Its hard to figure out what caused the error from the last part of the error message. Usually you need to look at the first error which tends to be the cause of what follows.

You will tell me this is tricky when hundreds of lines of garbage fly past your eyes and all you are left with is the last few lines to look at. Most IDEs and (programmers editors) will allow you to capture the output of gmake into some sort of window. Working from the windows command prompt your best option is to capture the error output into a text file like this:

gmake 2>err.txt

Now you can open err.txt and let us all know what is in the first couple of lines. My guess is that for some reason it has not picked up pthread.h, perhaps because you are using a different version of gcc to that prescribed. Please let us know.
Anonymous User
Re: Gmake
March 23, 2006 10:14AM
Hi,this is the first part of the code:

C:\unisa\mico\demo\poa\account-1>gmake
g++ -mthreads -Ic:/unisa/mico/include -D_REENTRANT -c -o account.o account.cc
In file included from c:/unisa/mico/include/mico/os-thread.h:88,
from c:/unisa/mico/include/CORBA.h:159,
from account.h:8,
from account.cc:8:
c:/unisa/mingw/include/pthread.h:250:19: sched.h: No such file or directory
In file included from c:/unisa/mico/include/mico/os-thread.h:88,
from c:/unisa/mico/include/CORBA.h:159,
from account.h:8,
from account.cc:8:
c:/unisa/mingw/include/pthread.h:822: syntax error before `int'
c:/unisa/mingw/include/pthread.h:824: syntax error before `int'
c:/unisa/mingw/include/pthread.h:826: syntax error before `int'
c:/unisa/mingw/include/pthread.h:829: syntax error before `int'
c:/unisa/mingw/include/pthread.h:832: syntax error before `int'
c:/unisa/mingw/include/pthread.h:835: syntax error before `int'
c:/unisa/mingw/include/pthread.h:838: syntax error before `int'
c:/unisa/mingw/include/pthread.h:841: syntax error before `int'
c:/unisa/mingw/include/pthread.h:844: syntax error before `int'
c:/unisa/mingw/include/pthread.h:847: syntax error before `int'
c:/unisa/mingw/include/pthread.h:850: syntax error before `int'
c:/unisa/mingw/include/pthread.h:853: syntax error before `int'
c:/unisa/mingw/include/pthread.h:856: syntax error before `int'
c:/unisa/mingw/include/pthread.h:859: syntax error before `int'
c:/unisa/mingw/include/pthread.h:862: syntax error before `int'
c:/unisa/mingw/include/pthread.h:865: syntax error before `int'
c:/unisa/mingw/include/pthread.h:871: syntax error before `int'
c:/unisa/mingw/include/pthread.h:876: syntax error before `int'
c:/unisa/mingw/include/pthread.h:878: syntax error before `int'
c:/unisa/mingw/include/pthread.h:881: syntax error before `void'
c:/unisa/mingw/include/pthread.h:883: syntax error before `int'
c:/unisa/mingw/include/pthread.h:886: syntax error before `pthread_self'
c:/unisa/mingw/include/pthread.h:888: syntax error before `int'
c:/unisa/mingw/include/pthread.h:890: syntax error before `int'
c:/unisa/mingw/include/pthread.h:893: syntax error before `int'


Is this syntax error in my path or a file(pthread file)?
Re: Gmake
March 23, 2006 11:34AM
Yes you are using the wrong compiler - probably the one shipped with last year's cd (2005). There was a packaging glitch last year and we left out two header files. This has since been rectified. Please uninstall your mingw and mico and reinstall from the 2006 cdrom.

Bob
Sorry, only registered users may post in this forum.

Click here to login