User forums > Using Code::Blocks

Is this a linker error.

<< < (2/3) > >>

abhinav:
Hi Biplab,

Could you please give me a lick for required latest nightly?

Thanks,

Biplab:
Visit the following section of Code::Blocks forum.

http://forums.codeblocks.org/index.php?board=20.0

Then read the latest release announcement and download links are available in the corresponding thread. At the time of writing latest nightly can be downloaded from the following thread.

http://forums.codeblocks.org/index.php?topic=5214.0

Regards,

Biplab

abhinav:
Hi Biplab,

The error is simple. You are using wxWidgets 2.8.0 but in your project file wxWidgets-2.6.x library is added to linker.

I have check all options and setting but same problem are occured again and again.

 

Project   : test
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Icreon\Desktop\testpro\dl2\test\
--------------------------------------------------------------------------------
Switching to target: Debug
mingw32-g++.exe   -LC:\wxWidgets-2.8.0\lib\gcc_dll -LC:\wxWidgets-2.8.0\lib\gcc_dll  -LC:\CodeBlocks\lib -o bin\Debug\test.exe        -lwxmsw26 -lcomctl32 -lgdi32 -lole32 -loleaut32 -luuid -lwxmsw26 -lcomctl32 -lgdi32 -lole32 -loleaut32 -luuid
C:\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)

thanks
Abhinav

Biplab:
Hi Abhinav,

I'm quite sure that you are using a old version of C::B. Please download a latest nightly version from the link that I've provided earlier and recreate your project files. It should solve the problem.

I'm posting the link of last nightly.
http://forums.codeblocks.org/index.php/topic,5289.0.html

If you still face the problem, try uploading your project file so that I can have a look.

Regards,

Biplab :)

abhinav:
Hi Biplab,

Thanks for reply.

You are right i am using old version of C::B(v1). I have already downloaded new nightly version but not set it yet.
I will set it after your reply.
Here i write the steps what i fallow to generate a new test project (very simple).

1. Opened C::B editor.
2. Clicked on Create a new project Link.
3. New Form Template  opened.
4. Selected wxwidgets Application option.
4.1 i had set Project Options :"Using wzwidgets dll".
4.2 I had set Files options: "No Header File".
5. Clicked on create button.
6. Create default wxwidgets project.
   " When ever i have create new project A notice windows appear with following message." while i have set that variable before creating new project.
      "This template expects wxwidgets to be located at c:wxWidgets-2.6.2 if this is not the case, you will have to update the relevant custom variable accordingly. to do this click on "Project->building option->Custom variable" "

following out put occurred when ever i try to build.


Project   : wxWidgets application
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Icreon\Desktop\testpro\dl2\test\New Folder\New Folder\
--------------------------------------------------------------------------------
Switching to target: default
mingw32-g++.exe   -Wall -g -pipe -mthreads -Winvalid-pch -include "wx_pch.h" -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DUSE_PCH    -IC:\wxWidgets-2.8.0\include -IC:\wxWidgets-2.8.0\lib\gcc_dll\msw -IC:\wxWidgets-2.8.0\contrib\include  -IC:\CodeBlocks\include -c wx_pch.h -o wx_pch.h.gch
mingw32-g++.exe   -Wall -g -pipe -mthreads -Winvalid-pch -include "wx_pch.h" -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DUSE_PCH    -IC:\wxWidgets-2.8.0\include -IC:\wxWidgets-2.8.0\lib\gcc_dll\msw -IC:\wxWidgets-2.8.0\contrib\include  -IC:\CodeBlocks\include -c main.cpp -o .objs\main.o
mingw32-g++.exe   -LC:\wxWidgets-2.8.0\lib\gcc_dll  -LC:\CodeBlocks\lib -o "C:\Documents and Settings\Icreon\Desktop\testpro\dl2\test\New Folder\New Folder\wxWidgets.exe" .objs\main.o        -lwxmsw26  -mwindows
C:\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 13 seconds)


Waiting for suggestion.
Thanks
Abhinav :)


 
   
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version