Author Topic: poide and other compilers  (Read 708 times)

TimoVJL

  • Member
  • **
  • Posts: 105
poide and other compilers
« on: October 25, 2018, 01:23:18 AM »
I want to open discussion about poide.
As PellesC have a good IDE, poide with Add-In capabilities, why not try it.
Without any project it's possible to use msvc to check code with -Zs option using Add-In.
Same way you can make/use Add-In to check code with other compilers and assemblers.

As i want to have a clean environment without virtual machines, i just can't install some very slow c...
May the source be with you

Vortex

  • Moderator
  • Member
  • *****
  • Posts: 1877
Re: poide and other compilers
« Reply #1 on: October 25, 2018, 04:53:29 AM »
Hi Timo,

Good idea. We can use Poide with the MS VC command-line tools. Here is an example, Poide building a project with VC2010 Express and Windows 7 SDK :
Code: [Select]
#
# PROJECT FILE generated by "Pelles C for Windows, version 8.00".
# WARNING! DO NOT EDIT THIS FILE.
#

POC_PROJECT_VERSION = 7.00#
POC_PROJECT_TYPE = 3#
POC_PROJECT_OUTPUTDIR = output#
POC_PROJECT_RESULTDIR = .#
POC_PROJECT_ARGUMENTS = #
POC_PROJECT_ZIPEXTRA = #
VC = H:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN#
CC = $(VC)\cl.exe#
LINK = polink.exe kernel32.lib user32.lib gdi32.lib crt0\crt0.lib#
CCFLAGS = -c -Zl#
LINKFLAGS = /SUBSYSTEM:WINDOWS#
INCLUDE =H:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;H:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include#
LIB = $(PellesCDir)\Lib;$(PellesCDir)\Lib\Win#

#
# Build Window.exe.
#
Window.exe: \
output\Window.obj
$(LINK) $(LINKFLAGS) -out:"$@" $**

#
# Build Window.obj.
#
output\Window.obj: \
Window.c
$(CC) $(CCFLAGS) "$!" -Fo"$@"

TimoVJL

  • Member
  • **
  • Posts: 105
Re: poide and other compilers
« Reply #2 on: October 25, 2018, 05:28:40 AM »
And there is an Add-In to convert PellesC project for a Visual Studio in some level.
Some times i like to test some source files with several compilers and see their warnings and error messages too.
And of course double click an error line and go to that specific line to fix it.

And compile, link and run a single file without any project.

@Erol
As you use link version 10, it is possible to 'fix' that link.exe to avoid RichHeader.

Easy way to run console program from Explorer with mouse right button:
Code: [Select]
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\*\shell\Open With cmd\command]
@="\"cmd.exe\" \"/k %1\""
EDIT: If you just hate an ordinary IDE, just make your own, an example for it :P
« Last Edit: October 25, 2018, 06:55:17 AM by TimoVJL »
May the source be with you

Vortex

  • Moderator
  • Member
  • *****
  • Posts: 1877
Re: poide and other compilers
« Reply #3 on: October 26, 2018, 06:08:41 AM »
Hi Timo,

No, nothing to hate. Your IDE is a nice work :t