Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Your problem sounds like anti-virus software has the file open and is scanning it.

Tim S.

I restarted my PC, disabled my anti-virus and began testing my codes. The error remains the same.
The idea seems to be right, but might be another software using the file. Is there any way to find what software are doing this?
2
General (but related to Code::Blocks) / Re: Ardunio Project Help
« Last post by oBFusCATed on Today at 12:29:43 pm »
So, lets explain how this works: The wizard creates a file named CDC.cpp which only includes CDC.cpp. We do this because we need to include code (implementation) from arduino's sources.
And this is the easiest way. I guess we should rename the project files to something more obvious.

The problem for you is that the include search paths in the project aren't correct.
Please inspect them and then verify that in one of them there is a file CDC.cpp.
Probably there are multiple such files, you'll have to select the correct one for your device.
Repeat with the other errors.

Probably switching to my wizard might help, but it isn't really tested on windows. :(
I'll see if I can make it work with the latest arduino.
3
General (but related to Code::Blocks) / Re: Ardunio Project Help
« Last post by stahta01 on Today at 09:31:11 am »
And, which wizard are you now using?

Quote
Do you use the integrated wizard or the one from https://github.com/obfuscated/cb_arduino_template ?

Tim S.
4
General (but related to Code::Blocks) / Re: Ardunio Project Help
« Last post by eldevstudios on Today at 07:49:04 am »
Please post a full rebuild log as posted here: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Literally what I have done.
The error I gave was the only error reported.
I have described the problem.
I've done nearly everything posted there.
But in a consice manner;
Codeblocks 17.12
Mingw-w64 6.2.0
Windows 8;
Problem: Code::Blocks Arduino project doesn't work; Doesn't link correctly.
What I have tried: Setting Code::Blocks' "ARDUINO_DIR" variable to the Arduino IDE; Stting System Variable "ARDUINO_DIR" to Arduino IDE; Rebuilding multiple times
Error:
Code: [Select]
||=== Build: Simulator - Debug in ardunioSafeController (compiler: Mingw-w64) ===|
(Directory to folder... Irrellevant)\Programming Projects\ardunioSafeController\cores\CDC.cpp|3|fatal error: CDC.cpp: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|


Log:
Code: [Select]

-------------- Clean: Simulator - Debug in ardunioSafeController (compiler: Mingw-w64)---------------

Cleaned "ardunioSafeController - Simulator - Debug"

-------------- Build: Simulator - Debug in ardunioSafeController (compiler: Mingw-w64)---------------

g++.exe -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -g -DARDUSIM -DENABLE_API_NAME -D__AVR_ATmega328P__ -I. -IC:\CodeBlocks/ardusim\libraries\EEPROM -IC:\CodeBlocks/ardusim\libraries\Ethernet -IC:\CodeBlocks/ardusim\libraries\Firmata -IC:\CodeBlocks/ardusim\libraries\Flash -IC:\CodeBlocks/ardusim\libraries\LCD4884 -IC:\CodeBlocks/ardusim\libraries\LCD4Bit_mod -IC:\CodeBlocks/ardusim\libraries\LiquidCrystal -IC:\CodeBlocks/ardusim\libraries\OBD -IC:\CodeBlocks/ardusim\libraries\SD -IC:\CodeBlocks/ardusim\libraries\SD\utility -IC:\CodeBlocks/ardusim\libraries\Servo -IC:\CodeBlocks/ardusim\libraries\SevenSegment -IC:\CodeBlocks/ardusim\libraries\SoftwareSerial -IC:\CodeBlocks/ardusim\libraries\SPI -IC:\CodeBlocks/ardusim\libraries\Stepper -IC:\CodeBlocks/ardusim\libraries\TinyGPS -IC:\CodeBlocks/ardusim\libraries\Wire -IC:\CodeBlocks/ardusim\libraries\Wire\utility -IC:\CodeBlocks/ardusim\arduino\cores -IC:\CodeBlocks/ardusim\arduino\variants\standard -IC:\CodeBlocks/ardusim\include -c "C:\Users\matthew\Desktop\Programming Projects\ardunioSafeController\cores\CDC.cpp" -o obj\Debug\cores\CDC.o
C:\Users\matthew\Desktop\Programming Projects\ardunioSafeController\cores\CDC.cpp:3:19: fatal error: CDC.cpp: No such file or directory
 #include <CDC.cpp>
                   ^
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 
Nothing new. Doing the same thing over and over again, changing nothing, and expecting a different result is insanity.
5
Your problem sounds like anti-virus software has the file open and is scanning it.

Tim S.
6
I am using Code Blocks 16.01 and my OS is Windows 10.
Whenever i build a code (named ''crypto.c'', for example) and execute it, the next time i try to build it i get the following error:

" ld.exe Cannot open output file C:\Users\...\crypto.exe Permission denied
error: ld returned 1 exit status
Build failed: 2 error(s), 0 warning(s)"

I looked on topics with similar problems, but i coudn't figured out how to fix this problem yet.
Also, when i try delete the crypto.exe i receive the message:
"The action can't be completed because the file is open in crypto.exe
Close the file and try again"

I believe this error is due to a hidden instance of the .exe opened somewhere, but i couldn't  find it using the task manager.
How can i find and close this hidden instance of the program?

___________________________________________________________________________________________

I found out there's a process with the same name as the .exe opened when i used the Process Explorer from sysinternals, but when i try to kill the process i receive the message:
"Error opening process: Acess is denied"

Then i tried to terminate the process with de command prompt, but then i received the message:
"ERROR: The process "crypto.exe" with PID 11144 could not be terminated.
Reason: Acess is denied."
8
General (but related to Code::Blocks) / Re: Ardunio Project Help
« Last post by eldevstudios on Yesterday at 08:26:09 pm »
I downgraded to 1.0.6, still will not work.
9
General (but related to Code::Blocks) / Re: Ardunio Project Help
« Last post by eldevstudios on Yesterday at 07:57:26 pm »
My wizard works with 1.6.9. I've not tested anything newer or older.
Software as in the IDE? I'm using the latest, which is 1.8.5
I can downgrade to 1.6.9
Also, I should mention, I am runnign Windows 8 (sadly, lol)
10
Using Code::Blocks / Re: Precompiler flags
« Last post by BlueHazzard on Yesterday at 04:19:35 pm »
I don't know anything about fortran but if it is similar to the c preprocessor you have to add
-DASSIMILATION as other compiler option, or use the #defines tab of the compiler settings....
Pages: [1] 2 3 4 5 6 ... 10