|
From: Vakku J. C. <va...@ya...> - 2002-05-04 07:58:54
|
hi, I am new user dev ++ and also new to c "outportb" the compiler says C:\WINDOWS\TEMP\ccBgszfb.o(.text+0x46):si.c: undefined reference to `outportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0x5b):si.c: undefined reference to `outportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0x6d):si.c: undefined reference to `outportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0x7f):si.c: undefined reference to `outportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0x91):si.c: undefined reference to `outportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0xa3):si.c: more undefined references to `outportb' follow C:\WINDOWS\TEMP\ccBgszfb.o(.text+0xc9):si.c: undefined reference to `inportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0xe8):si.c: undefined reference to `inportb' C:\WINDOWS\TEMP\ccBgszfb.o(.text+0x120):si.c: undefined reference to `outportb' Can some one help me to get this solved. Thanks Vakku __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
|
From: Guillaume B. <be...@wa...> - 2002-05-04 08:04:39
|
> "outportb" the compiler says outportb is not standard, and every compiler has his own function. For Dev-C++, the functions are "_outp()" and "_inp()". But remember, these functions can't be used under windows NT/2000/XP. gUI |
|
From: Vakku J. C. <va...@ya...> - 2002-05-04 08:17:52
|
Hi all,
How do i get the names of the functions...
below is my small program..
can some one go through and help me to find out why
this is not working .
Thanks
Vakku
#include<dos.h>
#include<stdio.h>
#include<conio.h>
#define port1 0x3f8
void main(void)
{
int c;
int ch;
_outp(port1 + 1,0);
_outp(port1 + 3, 0x80);
_outp(port1 + 0, 0x0C);
_outp(port1 + 1, 0x00);
_outp(port1 + 3, 0x03);
_outp(port1 + 2, 0x00);
printf("\nSample Comm's Program. Press ESC to quit
\n");
do { c = _inp(port1 + 5) ;
if ( c & 1 )
{
ch = _inp (port1);
printf ("%c",ch );
}
if (kbhit())
{
_outp(port1,ch);
}
}
while ( ch!=27 );
}
--- Guillaume Betous <be...@wa...> wrote:
> > "outportb" the compiler says
>
> outportb is not standard, and every compiler has his
> own function.
>
> For Dev-C++, the functions are "_outp()" and
> "_inp()".
>
> But remember, these functions can't be used under
> windows NT/2000/XP.
>
> gUI
>
>
>
_______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for
> download mirrors. We supply
> the hardware. You get the recognition. Email Us:
> ban...@so...
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
|
|
From: Vakku J. C. <va...@ya...> - 2002-05-04 09:20:02
|
Sorry everyone it was typo... Thanks vakku --- Guillaume Betous <be...@wa...> wrote: > > "outportb" the compiler says > > outportb is not standard, and every compiler has his > own function. > > For Dev-C++, the functions are "_outp()" and > "_inp()". > > But remember, these functions can't be used under > windows NT/2000/XP. > > gUI > __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
|
From: Vakku J. C. <va...@ya...> - 2002-07-05 03:21:40
|
hi all, I am new user dev ++ and also new to c Can some one help me in implementing a tcp/ip socket using c. My ultimate goal is using minimum hardware interface a microcontroller to the ethernet. As mentioned above i am very new to this field, all i know is microcontroller. As a kickstart for this , i would like to do a communication with pc-pc on the existing ethernet layer what we have in our office. I need to mention that i have never done socket programming before. Please suggest me all the possible ways for reaching my goal (any books for a beginner like me ). I hope this wont be a big request for all the highly experinced people in here .. Thanks in advance vakku. __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com |
|
From: Mac R. <re...@no...> - 2002-07-05 12:58:46
|
> Can some one help me in implementing a tcp/ip socket >using c. My ultimate goal is using minimum hardware >interface a microcontroller to the ethernet. > >As mentioned above i am very new to this field, all i >know is microcontroller. As a kickstart for this , i >would like to do a communication with pc-pc on the >existing ethernet layer what we have in our office. >I need to mention that i have never done socket >programming before. Please suggest me all the possible >ways for reaching my goal (any books for a beginner >like me ). I am going to take a slightly different approach than most, since you mentioned wanting to attach a microcontroller to the ethernet. If you meant an x86 CPU running Windows (which is the only platform supported by Dev-C++, as far as I know), then you should check out the books that have already been mentioned in other posts. If, instead, you are running on a tiny processor (8051, 6501, PIC, etc), you might be interested in the following very lightweight and very small TCP/IP stacks. Both are by the same guy, one is a little bit more capable than the other. WARNING : To the best of my knowledge, neither stack uses the standard "Berkeley Sockets" functional API, which is what both Windows and UNIX networking is usually based on. Learning to use either of these stacks WILL NOT help you in learning to program networking applications for Windows or UNIX. But if all you want is a tiny computer talking on the network, they might fit your requirements. (It is possible that the lwIP stack actually does support the "Berkeley Sockets" standard API, but they claim it is an optional component, and I don't know how closely they actually followed all of the specifications for that API.) http://www.sics.se/~adam/lwip/ http://dunkels.com/adam/uip/ Share and enjoy! Mac - _____________________________ /"\ Mac Reiter \ / ASCII Ribbon Campaign Nomadics, Inc. X Against HTML Mail re...@no... / \ (To join the campaign, simply use this in your signature.) |
|
From: Vakku J. C. <va...@ya...> - 2002-07-08 01:28:46
|
Hi all Mac and Flavio, Thanks for ur valuable comments, Now i have enough to go through , and i will come come back to u all with more specific doubts on this subject.. Thanks all. vakku. --- Mac Reiter <re...@no...> wrote: > > Can some one help me in implementing a tcp/ip > socket > >using c. My ultimate goal is using minimum hardware > >interface a microcontroller to the ethernet. > > > >As mentioned above i am very new to this field, all > i > >know is microcontroller. As a kickstart for this , > i > >would like to do a communication with pc-pc on the > >existing ethernet layer what we have in our office. > >I need to mention that i have never done socket > >programming before. Please suggest me all the > possible > >ways for reaching my goal (any books for a beginner > >like me ). > > I am going to take a slightly different approach > than most, since you > mentioned wanting to attach a microcontroller to the > ethernet. If you > meant an x86 CPU running Windows (which is the only > platform supported by > Dev-C++, as far as I know), then you should check > out the books that have > already been mentioned in other posts. > > If, instead, you are running on a tiny processor > (8051, 6501, PIC, etc), > you might be interested in the following very > lightweight and very small > TCP/IP stacks. Both are by the same guy, one is a > little bit more capable > than the other. > > WARNING : To the best of my knowledge, neither stack > uses the standard > "Berkeley Sockets" functional API, which is what > both Windows and UNIX > networking is usually based on. Learning to use > either of these stacks > WILL NOT help you in learning to program networking > applications for > Windows or UNIX. But if all you want is a tiny > computer talking on the > network, they might fit your requirements. (It is > possible that the lwIP > stack actually does support the "Berkeley Sockets" > standard API, but they > claim it is an optional component, and I don't know > how closely they > actually followed all of the specifications for that > API.) > > http://www.sics.se/~adam/lwip/ > http://dunkels.com/adam/uip/ > > Share and enjoy! > Mac > - > _____________________________ /"\ > Mac Reiter \ / ASCII > Ribbon Campaign > Nomadics, Inc. X Against > HTML Mail > re...@no... / \ (To join > the campaign, simply use > this in > your signature.) > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Bringing you mounds of caffeinated joy. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com |