Thread: _putch in c???

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    Exclamation _putch in c???

    hello everyone,

    I'm trying to introduce the MicroVGA product to my M16c/62p microcontroller. The library provided with the MicroVGA has several commands that are not recognized by my microcontroller.

    One of those commands is the _cputs. it also doesn't recognize _putch

    i read somewhere that those commands are for C++. is that true? if so, is there a translation of those commands for C?

    Thank you in advance.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Not sure what you are actually trying to achieve, but if _putch and _puts are from code that compiles on MS compilers, then try removing the _. If that's not the problem, then we need more details.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    2
    i tried removing the _

    the error i get becomes:

    "$putch value is undefined"

    what other information do u need? i'll try to provide it asap.

    thank you. =)

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    _putch was defined in conio.h for systems that had such a thing. Same with _cputs. I suppose "puts" and "putchar" are the standard C equivalents, although whether they're what you want or not I don't know.

Popular pages Recent additions subscribe to a feed