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 8597797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:59:43+00:00 2026-06-12T00:59:43+00:00

There is a tutorial – http://llvm.org/docs/GettingStartedVS.html Example done in pure C. I can compile

  • 0

There is a tutorial – http://llvm.org/docs/GettingStartedVS.html Example done in pure C. I can compile and link it. Without problem, really. But I need C++, not pure C. And here the difficulties begin.

For clang++ I use string like

"C:\..> clang++ -c hello.cpp -emit-llvm -o hello.bc"

then:

"C:\..> llc -filetype=obj hello.bc"

and

"C:\..> link hello.obj -defaultlib:libcmt -out:hello.exe"

there I get 14 errors LNK2001: unresolved external symbol

So, I need some tips. What I do wrong?

//-----------------

hello.cpp:

#include < iostream >

int main()

{

    std::cout << "TEST\n" << std::endl;

    return 0;

}

//-----------------

OS: Windows7.

UPD: Main question: how from .bc get .exe? (LLVM, Windows7)

  • 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-06-12T00:59:45+00:00Added an answer on June 12, 2026 at 12:59 am

    You can use my GCC and Clang packages:

    Download and extract them to the same directory. Clang will use GCC 4.6.3’s libstdc++ and MinGW-w64’s CRT. Call it like you would gcc.

    Clang/LLVM cannot currently work with MSVC’s C++ library, due to ABI issues. GCC’s libstdc++ works quite well, though it has holes in surprising places (like std::to_string, <regex>, and <thread>).

    Clang’s Windows support is OK, but far from complete. You cannot for example dllexport whole C++ classes, unfortunately. And Win64 code generation is also not good enough to have a working C++ install (even in combination with GCC, like for 32-bit).

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

Sidebar

Related Questions

Is there any updated tutorial for this or something similar to this - http://static.springsource.org/docs/Spring-MVC-step-by-step/
In hirb tutorial there's an example for array: [[1,2], [2,3]] prints as +---+---+ |
I was wondering is there any tutorial out there that can teach you how
Is there any tutorial or resource I can follow in order to use the
I am following a tutorial on http://msdn.microsoft.com/en-us/wp7trainingcourse_usingbingmapslab_topic3#_Toc271039355 . Source code can be found here:
Is there any tutorial on how can I get latitude and longitude whenever a
In hte following tutorial there are many, lifecycle and behavioural annotations: http://www.vogella.com/articles/EclipseRCP/article.html#programmingmodel @PostConstruct @PreDestroy
In the tutorial there is an example for finding prime numbers: >>> for n
Is there a tutorial or a code example of various kinds of View Animations
Is there a tutorial or code example of using Ajax.BeginForm within Asp.net MVC 3

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.