Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. /clr and C code

/clr and C code

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpquestionc++dotnet
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jspano
    wrote on last edited by
    #1

    I have a C dll that I didn't write so I don't know what's really going on in it. It compiles fine. If I turn on the /clr switch though, I get about 20 errors out of it like c:\Parser\link42\src\pp_lexer.c(680): error C2197: 'pp_lexer__create_buffer' : too many arguments for call through pointer-to-function I also get an error that points to stdlib.h which I don't understand either. C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(368): error C2192: parameter '1' declaration different pointing to _CRTIMP void __cdecl perror(const char *); Is this because of my trying to compile in as C code and clr trying to reference a new copy of stdlib.h or something? My c++ is very rusty. Can anyone tell me what is wrong or what I can do to fix it? I was under the impression that /clr really didn't do that much. TIA

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups