将C代码编译为ARM的Dll [英] Compiling C code to a Dll for ARM

查看:117
本文介绍了将C代码编译为ARM的Dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个用C语言编写的库,我可以使用MinGW编译x86和x64架构(包含很多makefile)。 我现在想要实现的是编译可用于我的Windows Universal App项目的东西(而电话部分
是让我烦恼的)。

I have a library written in C which I am able to compile for x86 and x64 architectures using MinGW (with quite a lot of makefiles). What I'm trying to achieve now is to compile something useable by my Windows Universal App project (and the phone part is what troubles me).

如何编译ARM的源代码?我在网上找到了关于编译arm-elf的东西,但afaik我需要一个不同的格式。或者我可能走错了方向?

How do I go about compiling the sources for ARM? I've found something on the net about compiling for arm-elf, but afaik I need a different format. Or may be I'm heading the completely wrong way?

谢谢!

推荐答案

嗨迈克尔,

您应该使用Visual Studio。并创建一个C ++ Static 库或Windows运行时组件(如果你想要手机和商店,可以使用通用应用程序)。 在那里,您可以将配置设置为ARM。

You should use Visual Studio. and create a C++ Static Library or Windows Runtime component (Universal app if you want for phone and store).  In there you can set the configuration to ARM.


这篇关于将C代码编译为ARM的Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆