User forums > Help

Linker problem after importing DevCpp project

(1/2) > >>

ijese:
Hi. I'm new with CB and it looks great, but I have a problem rebuilding the imported DevCpp project  :(

I'm using CB1rc2 with MinGW 3.4.2 from DevCpp. "libFOX.a" is compiled and linked with the same gcc. What's wrong?

Project   : TEST MockupScreens
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\igor\projekti\radni\mockupscreens\tests\
--------------------------------------------------------------------------------
Switching to target: default
mingw32-g++.exe   -L..\libs  -LC:\Dev-Cpp\lib -o C:\IGOR\projekti\radni\mockupscreens\tests\Storyboardz.exe obj\src\Checkbox.o obj\src\Dropdown.o obj\src\FloatText.o obj\src\Form.o obj\src\Frame.o obj\src\LabeledDropdown.o obj\src\LabeledField.o obj\src\Project.o obj\src\SImage.o obj\src\SLabeledList.o obj\src\SLine.o obj\src\SMark.o obj\src\SMultilineText.o obj\src\SRadio.o obj\src\STList.o obj\src\STable.o obj\src\STabs.o obj\src\STextLink.o obj\src\STitle.o obj\src\STree.o obj\src\Scenario.o obj\src\Screen.o obj\src\Storyboardz.o obj\src\Subject.o obj\src\ViewProjectScenarios.o obj\src\ViewScenarioScreens.o obj\src\ViewScreenElements.o obj\src\ViewScreenForm.o obj\src\Widget.o obj\src\WinAbout.o obj\src\WinOptions.o obj\src\WinProjectMain.o obj\src\WinScreenEditor.o obj\src\WinSlideShow.o obj\src\WinSplash.o obj\src\WinTableEditor.o obj\src\button.o obj\src\storyboardz_utils.o obj\src\textfield.o obj\src\textlabel.o obj\tests\ButtonTest.o obj\tests\FormTest.o obj\tests\GuiTestRefresh.o obj\tests\GuiTestWidgetEdit.o obj\tests\GuiTestWidgetFields.o obj\tests\GuiTestWidgetTabs.o obj\tests\GuiTestWidgetTransform.o obj\tests\ProjectTest.o obj\tests\STableTest.o obj\tests\ScenarioTest.o obj\tests\ScreenTest.o obj\tests\TestDefinirajEkran.o obj\tests\WidgetTest.o obj\tests\WinTestResults.o obj\tests\main.o     -mwindows -e _mainCRTStartup -lFOX -lcpptest -ljpeg -lcomctl32 -lwsock32 -lwinspool -lmpr -lpng -lm -lz
..\libs/libFOX.a: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings

mandrav:

--- Quote ---What's wrong?
--- End quote ---

--- Quote ---..\libs/libFOX.a: file not recognized: File format not recognized
--- End quote ---

It tells you exactly what's wrong...

rcoll:

--- Quote from: mandrav on August 09, 2006, 11:19:55 pm ---
--- Quote ---What's wrong?
--- End quote ---

--- Quote ---..\libs/libFOX.a: file not recognized: File format not recognized
--- End quote ---

It tells you exactly what's wrong...

--- End quote ---

I don't get this.  If "libFOX.a" is compiled and linked with the same gcc, why is
the file format not recognized later by gcc?  There might be a problem with switch
args, or backslash styles ("/" vs "\") but I would expect a different message from
gcc than "invalid file format".

-- Ron --

ijese:

--- Quote from: mandrav on August 09, 2006, 11:19:55 pm ---
--- Quote ---What's wrong?
--- End quote ---

--- Quote ---..\libs/libFOX.a: file not recognized: File format not recognized
--- End quote ---

It tells you exactly what's wrong...

--- End quote ---

If you can see what's wrong please explain. And thank you for your time...

mandrav:
If I have to

a) believe what ijese thinks libfox.a is, or
b) believe what gcc thinks libfox.a is

then, sorry, I have to go with (b). I trust gcc more ;)

Have you tried to see the contents of libfox.a? Its size? Have you investigated the file?

Navigation

[0] Message Index

[#] Next page

Go to full version