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 » Community » Coffee corner » Intresting action
Intresting action [message #4889] Thu, 24 August 2006 09:28 Go to next message
unknown user
1:delecte all .o files in out,press F7
BLITZ: CppSQLite3.cpp main.cpp.....OK. (0:19.73)

2:press F7 again:
CppSQLite3.cpp
NetPath: 1 file(s) built in (0:01.90), 1903 msecs / file, duration = 1913 msecs
Linking...
(option '-O 2' ignored)
___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
1 undefined symbol(s):
_WinMain@16 (referenced from libmingw32.a:main.o:1; _main; .text)
linking aborted due to fatal errors
collect2: ld returned 1 exit status
There were errors. (0:02.59)

3:edit file main.cpp,press F7
main.cpp
NetPath: 1 file(s) built in (0:04.46), 4467 msecs / file, duration = 4477 msecs
Linking...
(option '-O 2' ignored)
___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
18 undefined symbol(s):
...........
There were errors. (0:05.23)

Any explanation?
upp-mingw-608-dev1

[Updated on: Thu, 24 August 2006 09:29] by Moderator

Report message to a moderator

Re: Intresting action [message #4892 is a reply to message #4889] Thu, 24 August 2006 16:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sometimes BLITZ can hide errors in header arrangement. E.g.

file1.cpp:

#include <CtrlLib/CtrlLib.h>

....


file2.cpp

- missing #include

When compiled as single BLITZ block, missing header is second file problem is ignored (because it gets included in first file).

I guess this one is similar.

Mirek
Re: Intresting action [message #4894 is a reply to message #4892] Thu, 24 August 2006 16:15 Go to previous message
unknown user
luzr wrote on Thu, 24 August 2006 10:04

Sometimes BLITZ can hide errors in header arrangement. E.g.

file1.cpp:

#include <CtrlLib/CtrlLib.h>

....


file2.cpp

- missing #include

When compiled as single BLITZ block, missing header is second file problem is ignored (because it gets included in first file).

I guess this one is similar.

Mirek



sorry,my fault,I fixed it just now,I didn't add a new package,just add all files to main package.
now I creat a new package name as SQLite.
everything is fine
Previous Topic: Congratulations U++ forum members! - 1000 topics!
Next Topic: Examples for newby: dynamic widget and ownership
Goto Forum:
  


Current Time: Fri Mar 29 02:09:44 CET 2024

Total time taken to generate the page: 0.01258 seconds