Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Cannot compile core console project?
icon5.gif  Cannot compile core console project? [message #43706] Wed, 24 September 2014 10:46 Go to next message
anta40 is currently offline  anta40
Messages: 6
Registered: September 2014
Location: Jakarta, Indonesia
Promising Member
Step by step:
1. Create core console project in MyApps.
2. The "create header", "commandline loop", "multithreaded", and "Use SSE2" checkboxes are unchecked.

And while compiling this simple code:
#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	Cout() << "Hello world from U++...";
}


I got these errors:
Quote:

----- Core ( MSC12 WIN32 MSC ) (1 / 3)
cl : Command line warning D9024 : unrecognized source file type 'Files\Microsoft', object file assumed
cl : Command line warning D9027 : source file 'Files\Microsoft' ignored
cl : Command line warning D9024 : unrecognized source file type 'Visual', object file assumed
cl : Command line warning D9027 : source file 'Visual' ignored
cl : Command line warning D9024 : unrecognized source file type 'Studio', object file assumed
cl : Command line warning D9027 : source file 'Studio' ignored
cl : Command line warning D9024 : unrecognized source file type '12.0\VC\include -IC:\Program', object file assumed
cl : Command line warning D9027 : source file '12.0\VC\include -IC:\Program' ignored
cl : Command line warning D9024 : unrecognized source file type 'Files\Windows', object file assumed
cl : Command line warning D9027 : source file 'Files\Windows' ignored
cl : Command line warning D9024 : unrecognized source file type 'Kits\8.1\Include\um -IC:\Program', object file assumed
cl : Command line warning D9027 : source file 'Kits\8.1\Include\um -IC:\Program' ignored
cl : Command line warning D9024 : unrecognized source file type 'Files\Windows', object file assumed
cl : Command line warning D9027 : source file 'Files\Windows' ignored
..
..
..
cl : Command line warning D9024 : unrecognized source file type 'Kits\8.1\Include\um -IC:\Program', object file assumed
cl : Command line warning D9027 : source file 'Kits\8.1\Include\um -IC:\Program' ignored
cl : Command line warning D9024 : unrecognized source file type 'Files\Windows', object file assumed
cl : Command line warning D9027 : source file 'Files\Windows' ignored
cl : Command line warning D9024 : unrecognized source file type 'Kits\8.1\Include\shared -IC:\Program', object file assumed
cl : Command line warning D9027 : source file 'Kits\8.1\Include\shared -IC:\Program' ignored
cl : Command line warning D9024 : unrecognized source file type 'Files\Windows', object file assumed
cl : Command line warning D9027 : source file 'Files\Windows' ignored
cl : Command line warning D9027 : source file 'Kits\8.1\Include\winrt -DflagMAIN -DflagMSC12 -DflagWIN32 -DflagMSC -DbmYEAR=2014 -DbmMONTH=9 -DbmDAY=
24 -DbmHOUR=15 -DbmMINUTE=41 -DbmSECOND=28 -EHsc -MT -O1 -GS- -Gy -FdC:/upp/out/MyApps/ConsoleTest/MSC12.Main\ConsoleTest-1.pd b -Tp C:\upp\apps\Co
nsoleTest\ConsoleTest.cpp -FoC:/upp/out/MyApps/ConsoleTest/MSC12.Main\ConsoleTest.obj' ignored
cl : Command line warning D9021 : no action performed
ConsoleTest: 1 file(s) built in (0:00.01), 15 msecs / file, duration = 15 msecs, parallelization 0%
Linking...
LINK : fatal error LNK1181: cannot open input file 'C:\upp\out\MyApps\ConsoleTest\MSC12.Main\ConsoleTest.obj'

There were errors. (0:00.96)


Looking at things like "Files\Microsoft", "-IC:\Program", etc, it seems that TheIDE cannot parse the path to VS 2013 properly?

I'm using the latest package (upp-win32-7721.exe), anyway.

[Updated on: Wed, 24 September 2014 10:56]

Report message to a moderator

Re: Cannot compile core console project? [message #43709 is a reply to message #43706] Wed, 24 September 2014 15:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
That is weird. What is missing is '\"' quotes around include paths - but that is usually added by standard.

You can activate Setup/Verbose to see exactly what is going into commandlines.

Have you tried to specify include paths yourself somehow?

Mirek
Re: Cannot compile core console project? [message #43711 is a reply to message #43709] Thu, 25 September 2014 05:58 Go to previous messageGo to next message
anta40 is currently offline  anta40
Messages: 6
Registered: September 2014
Location: Jakarta, Indonesia
Promising Member
So I tried once again with the verbose option enabled.
This is the complete log:
http://pastebin.com/QRg6QZ9h

By a quick glance, it is easy to see that there are plenty "unrecognized source file type" line
Google search pointed me to this: http://msdn.microsoft.com/en-us/library/zfsbakc5.aspx
Seems that that's a warning, rather an error.
On the other hand, the actual errors are linker errors. I'm not really sure about this. Maybe the U++ libs themselves are not built properly?

And BTW, I didn't specify the include paths myself.
These are what I found on the Build Methods (which are correct):
Quote:

PATH - executable directories
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE
C:\Program Files\Microsoft Visual Studio 12.0\VC\bin
C:\Program Files\Windows Kits\8.1\bin\x86

INCLUDE directories
C:\Program Files\Microsoft Visual Studio 12.0\VC\include
C:\Program Files\Windows Kits\8.1\Include\um
C:\Program Files\Windows Kits\8.1\Include\shared
C:\Program Files\Windows Kits\8.1\Include\winrt

LIB directories
C:\Program Files\Microsoft Visual Studio 12.0\VC\lib
C:\Program Files\Windows Kits\8.1\Lib\winv6.3\um\x86


Confused
Re: Cannot compile core console project? [message #43713 is a reply to message #43711] Thu, 25 September 2014 08:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hm, I have an idea:

-I"C:\upp\apps\"

I would say that it is possible that Win32 takes the \ before " as escape, so that " is ignored and that breaks the whole thing.

I believe the \ got there when you were defining your assembly ("C:\upp\apps\;C:\upp\uppsrc").

Mirek
Re: Cannot compile core console project? [message #43714 is a reply to message #43713] Thu, 25 September 2014 08:47 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, now after reproducing I am 100% sure it was the culprit.

I have added a code to remove trailing \\ from path when quoting it in order to avoid bad surprises in the future... Smile

Mirek
Previous Topic: Need help compiling UPP tarball on Linux Mint 17 Qiana
Next Topic: Weird error when compiling projects
Goto Forum:
  


Current Time: Thu Mar 28 21:08:56 CET 2024

Total time taken to generate the page: 0.01090 seconds