Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Linking Assembly and C/C++

This topic is 6224 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve asked this question before but never got a straight answer. I''ve read books about C/C++ and assembly but they just say link this assembly file with this C/C++ file... how? It''s pure 16bit dos coding, I have MSVC++, Turbo C++, MASM32, and DJGPP. Can anyone give me explicit instructions on merging Assembly and C/C++ with any one of these compilers? Thanks in advance.

Share this post

Link to post
Share on other sites
some of the compilers you listed have built in asm. you''d just have to figure out the syntax. like ''__asm'', or just ''asm''. If you want to externaly link an asm module to your project, then you do just that. in vc++ you go to project->Setting->Link and type in the name of the .obj file that was created from your assembler. make sure that the obj file is in the path of where your compiler can find it.

Polarisoft Home Page

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!