Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Release 15.12, RC1 has arrived

<< < (6/19) > >>

White-Tiger:

--- Quote from: BlueHazzard on November 25, 2015, 09:15:29 pm ---[...]
Windows XP Look'n'feel -> You need a gui program. This plugin creates the manifest file that you get a XP Looking gui (this can probably be removed because it isn't necessary in windows > XP, but there are still people out there that use XP)
[...]

--- End quote ---
well... it's still necessary even though I've never used the plugin as it is lacking important features and I'm also preferring tabs to spaces to reduce my program's size.
And also quite important: it's useless for x86_64.

A proper (and "minimal") manifest would have to look like this (for XP and >Vista support)

--- Code: (xml) ---<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/><!--7-->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/><!--8-->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/><!--8.1-->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/><!--10-->
</application>
</compatibility>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>

--- End code ---

For comparison, this is the generated XP manifest: (also note that it's using \n as line break which won't work for most Windows users as it'll look like a huge single line in Notepad)

--- Code: (xml) ---<?xml version="1.0" encoding="UTF-8" standalone="yes"?>"
<assembly
  xmlns="urn:schemas-microsoft-com:asm.v1"
  manifestVersion="1.0">
<assemblyIdentity
    name="PROJECT.TARGET.App"
    processorArchitecture="x86"
    version="1.0.0.0"
    type="win32"/>
<description>Executable</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="x86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>

--- End code ---

stahta01:
Several months or a year or so ago, Cygwin redid their Compiler exe names.
The gcc-3.exe is no longer in the installation. Using GCC 4.9.? GCC version as of  today.

Tim S.


--- Code: ---From 1208d759474681795640e974263b74065241d324 Mon Sep 17 00:00:00 2001
From: Tim S <stahta01@users.sourceforge.net>
Date: Fri, 4 Dec 2015 14:46:56 -0500
Subject: [PATCH 2/2] * cygwin_support: Removed "-3" suffix from exe files.
 (Thanks stahta01)

---
 .../compilergcc/resources/compilers/options_cygwin.xml      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/plugins/compilergcc/resources/compilers/options_cygwin.xml b/src/plugins/compilergcc/resources/compilers/options_cygwin.xml
index fca1b7c..5f46924 100644
--- a/src/plugins/compilergcc/resources/compilers/options_cygwin.xml
+++ b/src/plugins/compilergcc/resources/compilers/options_cygwin.xml
@@ -1,12 +1,13 @@
 <?xml version="1.0"?>
 <!DOCTYPE CodeBlocks_compiler_options>
 <CodeBlocks_compiler_options extends="gcc">
-    <!-- NOTE: Cygwin's gcc.exe maybe a file link and
-         is not a good default name for running via cmd.exe
-         TODO: May also be gcc-4.exe!!! -->
-    <Program name="C"         value="gcc-3.exe"/>
-    <Program name="CPP"       value="g++-3.exe"/>
-    <Program name="LD"        value="g++-3.exe"/>
+    <!-- NOTE: In the old Cygwin's gcc.exe maybe a file
+         link and is not a good default name for
+         running via cmd.exe; tested good using gcc.exe
+         and g++.exe under Cygwin 2.873 32 bit -->
+    <Program name="C"         value="gcc.exe"/>
+    <Program name="CPP"       value="g++.exe"/>
+    <Program name="LD"        value="g++.exe"/>
     <Program name="DBGconfig" value="gdb_debugger:Default"/>
     <Program name="LIB"       value="ar.exe"/>
     <Program name="WINDRES"   value="windres.exe"/>
--
2.6.3.windows.1


--- End code ---

MortenMacFly:

--- Quote from: stahta01 on December 04, 2015, 09:17:28 pm ---The gcc-3.exe is no longer in the installation. Using GCC 4.9.? GCC version as of  today.

--- End quote ---
I noted that one, too and had to modify my local (run-time) C::B already way back. I would say its more years than month. So its time to make it official. Your patch is in trunk now. Thank you!

dcorbit:
The Watcom compilers are now available in 64 bits (C/C++/Fortran77):
http://sourceforge.net/projects/openwatcom/

When I tried to configure the Watcom Fortran compiler using 15.12 RC1, it reverted to strange settings (gunk from GCC, Watcom C stuff, clearly did not understand what to do).

Feature request (I know, not for this release):
Run a batch file to set the environment for a given compiler.
For instance, for Watcom, it is:
C:\WATCOM\owsetenv.bat
in my case for Watcom.

Also, LLVM gets installed here when I run the Installation for Visual Studio:
C:\Program Files\LLVM

I would like to be able to run it from Code::Blocks also.

dcorbit:
F:\hello>wfl386 hello.f
Open Watcom F77 x86 32-bit Compile and Link Utility
Version 2.0 beta Apr  2 2015 10:17:14 (64-bit)
Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1990-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
        wfc386 hello.f
Open Watcom FORTRAN 77 x86 32-bit Optimizing Compiler
Version 2.0 beta Apr  2 2015 10:10:56 (64-bit)
Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
hello.f: 5 statements, 37 bytes, 2 extensions, 0 warnings, 0 errors
        wlink @__wfl__.lnk
Open Watcom Linker Version 2.0 beta Apr  2 2015 09:56:44 (64-bit)
Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
creating a Windows NT character-mode executable

F:\hello>hello
  Hello, world!

F:\hello>depends hello.exe

F:\hello>type hello.f
      program main

c*********************************************************************72
c
cc MAIN is the main program for HELLO.
c
c  Discussion:
c
c    HELLO is a simple FORTRAN77 program that says "Hello, world!".
c
c  Licensing:
c
c    This code is distributed under the GNU LGPL license.
c
c  Modified:
c
c    18 May 2009
c
c  Author:
c
c    John Burkardt
c
      implicit none

      write ( *, '(a)' ) '  Hello, world!'

      stop
      end

F:\hello>

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version