Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3602032
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:41:42+00:00 2026-05-18T20:41:42+00:00

I am trying to build a C project in Visual C++ 2010 Express as

  • 0

I am trying to build a C project in Visual C++ 2010 Express as C++ so I can create a C++/CLI .net wrapper for it. It compiles fine, but the linker tells me that swprintf(…), vswprintf(…), _swprintf_l(…), and _vswprintf(…) are already defined. The strange thing is that it says they are already defined in an .obj file that I made, and I am sure that I did not define them. In fact, I don’t even call any of them. Does anyone have any idea what could be causing this?

Some clarifications:
This library is being written in straight C and built and run in OS X, FreeBSD, OpenBSD, and Linux. Porting it to Windows as a .net assembly is the challenge. I read that C libraries must be built in C++ to be given a C++/CLI wrapper. In getting it to build as a C++ project, I had to make a few tweaks (such as malloc casting) but it should still maintain C compatibility.

* FINAL UPDATE *

I don’t know how many hours I have wasted trying to make a .net wrapper for the file parsing library I am writing. I have tried it several times and every time it fails miserably. This time I did get farther than ever before, but I still could not get it to work.

What I had originally envisioned was a 3 project solution:

  1. an unmanaged static libary, built in C
  2. a managed .net wrapper, built in C++/CLI
  3. a managed winforms app, built in C#

I quickly learned that the express editions of Visual Studio give you exactly what you pay for them and don’t allow you to mix projects of different languages in a single solution. In order to do that, I would have to pay $800 for VS Pro and that is NOT happening!

I adapted to this by deciding to write the simple app in C++/CLI. Even so, it simply would not work. Apparently, I would either have to link the .obj files from part 1 (which doesn’t work, because it cannot compile C files with /clr) or build part 2 with /clr:safe (which created all kinds of other problems).

I really don’t know if this is a limitation of the useless Express editions of VS or if this would even be possible with the absurdly expensive versions (strange that $800 gets you VS Pro, but $700 gets you all of XCode and a Mac Mini to run in on! Microsoft Dev Tax anyone?!?) but either way, I’ve had enough. My library works great in OS X, FreeBSD, OpenBSD, Linux, and OpenSolaris, but not Windows, and until MS releases free dev tools that are actually useful and actually provide a way to use PORTABLE code (this works in), I just won’t care.

Thanks to all of you who gave advice and tried to help.

jorj

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:41:43+00:00Added an answer on May 18, 2026 at 8:41 pm

    you can use the preprocess-to-file option. This will tell you quickly where the function come from !

    May be you’re using the _tcs-versions of them ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a new .NET C++ project from scratch. I am planning
I'm trying to create a build script for my current project, which includes an
I'm trying to build up a library of reusable code to use from project
I'm trying to automate the build of the project I'm working on. My ultimate
I'm trying to use maven2 to build an axis2 project. My project is configured
I have a WPF project and I'm trying to setup a NAnt build script
I'm currently trying to build a personal website to create a presence on the
I am playing with TFS 2010, and am trying to setup a build process
Trying to build a GUI application in Java/Swing. I'm mainly used to painting GUIs
I trying to build and compile my xcodeproj in command line and it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.