User forums > General (but related to Code::Blocks)

Using .NET with GNU GCC?

(1/2) > >>

AndreasK:
Hi

I am a newbe trying to make a few things work. I am runing Codeblocks with the GNU GCC compiler.

What I want to do is send data via the serial port (USB to serial converter). Apparently .NET has a SerialPort Class that is very easy to use. Can I link headers etc from .NET to make this work? I have a feeling that the entire process from compilation to executable code is very different and does not allow this. Is this true?

The other option would to be to use another compiler (Visual Studio) under Codeblocks. True?

Option three would be to use a Windows API. Where would I find this and then link it when I compile?

Thanks for your help :P

Andreas

ouch:
.net is a microsoft specific thing, so yes you would have to link the microsoft compiler up to C:B.

And it also means your app will not be portable. It's common knowledge that .net is woven from the very fabric of evil... ;)

lol j/k, Honestly some people love it, others hate it.

I can't imagine there not being an portable open source alternative for hardware ports though. Might even be apart of boost, or sdl, but I never looked into it.

reckless:
look for mono ;)

AndreasK:
Thanks Guys

I think I'll go have a good look at boost. Never used it before - recon it's going to be exciting :D

What is mono?

is Using a windows API feasible?

Thanks

Andreas

reckless:
mono is a NET runtime but uses gtk instead of the windows api functions.

http://www.mono-project.com/Main_Page

runs on several operating systems.

sdk included.

works fine with mingw to.

Navigation

[0] Message Index

[#] Next page

Go to full version