News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Using "outportb" to send out data to computer ports

Started by ssepm, April 17, 2017, 05:33:23 PM

Previous topic - Next topic

ssepm

Hi every one!  I´m a beginner user of Code::Blocks. I have very old C projects, now I want to upgrade my old codes, so by Codeblocks program l found there is an error of using "outportb" function...

Does anybody know how to implement "outportb" in Code::Blocks?

This is a section of my code:

void MOTOSEC1(void)
   {
    for(i=0;i<300;i++)
   {
          outportb(PS1,PASO1);    /* MOTOR SEQUENCE 1 */
     delay(DELAYSEC);
     outportb(PS1,0x000);
     delay(DELAYSEC);
     outportb(PS1,PASO1);}
   } /* END MOTOSEC1*/


error: undefined reference to "outportb"

Thanks

Ernesto

stahta01

This is an Compiler and Operating System (OS) question; as in the answer depends on the Compiler and OS being used!

Please read the rules!! http://forums.next.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]