Author Topic: Using .NET with GNU GCC?  (Read 5909 times)

Offline AndreasK

  • Single posting newcomer
  • *
  • Posts: 4
Using .NET with GNU GCC?
« on: June 20, 2011, 10:46:51 pm »
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

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Using .NET with GNU GCC?
« Reply #1 on: June 20, 2011, 11:04:27 pm »
.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.

Offline reckless

  • Regular
  • ***
  • Posts: 333
Re: Using .NET with GNU GCC?
« Reply #2 on: June 21, 2011, 06:52:23 am »
look for mono ;)

Offline AndreasK

  • Single posting newcomer
  • *
  • Posts: 4
Re: Using .NET with GNU GCC?
« Reply #3 on: June 21, 2011, 03:42:54 pm »
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

Offline reckless

  • Regular
  • ***
  • Posts: 333
Re: Using .NET with GNU GCC?
« Reply #4 on: June 23, 2011, 06:15:04 am »
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.

Offline AndreasK

  • Single posting newcomer
  • *
  • Posts: 4
Re: Using .NET with GNU GCC?
« Reply #5 on: June 23, 2011, 12:46:49 pm »
Ok. Thanks again

Mono and boost are the two things I'm going to be looking into.

I will post here when I have any results.

Cheers

Andreas

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Using .NET with GNU GCC?
« Reply #6 on: June 24, 2011, 06:57:29 am »
I do not know. Net, I hope that many experts teach me!
Please, not here as this is a forums related to the development of Code::Blocks. I've locked this topic as meanwhile it violates our forum rules.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ