![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compilation problem | Cyr1us | AIX | 1 | 05-05-2009 11:40 AM |
| Problem on Pro*C compilation on HP-UX | asutoshch | UNIX for Advanced & Expert Users | 5 | 04-29-2009 12:52 PM |
| Pro C Compilation problem | ajaysahoo | AIX | 0 | 02-06-2009 02:05 AM |
| compilation problem | phani_sree | High Level Programming | 2 | 10-25-2007 05:18 PM |
| compilation problem | mansoorulhaq | SUN Solaris | 0 | 10-19-2007 09:18 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
C Compilation problem
Dear all I am new to C programming In response to the post cat get_time.c Code:
#include <stdlib.h>
#include <sys/time.h>
main()
{
struct timeval tv;
struct timezone tz;
struct tm *tm;
gettimeofday(&tv, &tz);
tm=localtime(&tv.tv_sec);
printf(" %d:%02d:%02d %d \n", tm->tm_hour, tm->tm_min,
m->tm_sec, tv.tv_usec);
exit(0);
}
gcc get_time.c Code:
get_time.c: In function `main': get_time.c:9: warning: assignment makes pointer from integer without a cast get_time.c:10: error: dereferencing pointer to incomplete type get_time.c:10: error: dereferencing pointer to incomplete type get_time.c:11: error: `m' undeclared (first use in this function) get_time.c:11: error: (Each undeclared identifier is reported only once get_time.c:11: error: for each function it appears in.) I am new to C....and really no idea. Please hint me for that. Many thanks Valentino |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|